Drizzled Public API Documentation

drizzled::statement::Flush Class Reference
Inheritance diagram for drizzled::statement::Flush:
drizzled::statement::Statement

List of all members.

Public Member Functions

 Flush (Session *in_session)
bool execute ()
void setFlushLog (bool f)
void setFlushTables (bool f)
void setFlushTablesWithReadLock (bool f)
void setFlushStatus (bool f)
void setFlushGlobalStatus (bool f)
void set_command (enum_sql_command)
LEX & lex ()
session::Transactionstransaction ()
virtual bool isTransactional ()
Sessionsession () const
virtual bool isShow ()

Private Member Functions

bool reloadCache ()

Private Attributes

bool flush_log
bool flush_tables
bool flush_tables_with_read_lock
bool flush_status
bool flush_global_status

Detailed Description

Definition at line 32 of file flush.h.


Member Function Documentation

Execute the statement.

Returns:
true on failure; false on success

Implements drizzled::statement::Statement.

Definition at line 34 of file flush.cc.

References drizzled::Session::my_ok(), and reloadCache().

Reload/resets privileges and the different caches.

Note:
Depending on 'options', it may be very bad to write the query to the binlog (e.g. FLUSH SLAVE); this is a pointer where reloadCache() will put 0 if it thinks we really should not write to the binlog. Otherwise it will put 1.
Returns:
Error status code
Return values:
0Ok
!=0Error; session->killed is set or session->is_error() is true

Definition at line 48 of file flush.cc.

Referenced by execute().


The documentation for this class was generated from the following files: