drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::statement::Flush Class Reference
Inheritance diagram for drizzled::statement::Flush:
[legend]
Collaboration diagram for drizzled::statement::Flush:
[legend]

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)
Public Member Functions inherited from drizzled::statement::Statement
 Statement (Session *in_session)
void set_command (enum_sql_command)
LEX & lex ()
session::Transactions & transaction ()
virtual bool isTransactional ()
Session & session () 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 29 of file flush.h.

Constructor & Destructor Documentation

◆ Flush()

drizzled::statement::Flush::Flush ( Session * in_session)
inline

Definition at line 32 of file flush.h.

Member Function Documentation

◆ execute()

bool drizzled::statement::Flush::execute ( )
virtual

Execute the statement.

Returns
true on failure; false on success

Implements drizzled::statement::Statement.

Definition at line 34 of file flush.cc.

◆ reloadCache()

bool drizzled::statement::Flush::reloadCache ( )
private

Reload/resets privileges and the different caches.

Returns
Error status code
Return values
0Ok
!=0Error; session->killed is set or session->is_error() is true

Definition at line 44 of file flush.cc.

◆ setFlushGlobalStatus()

void drizzled::statement::Flush::setFlushGlobalStatus ( bool f)
inline

Definition at line 60 of file flush.h.

◆ setFlushLog()

void drizzled::statement::Flush::setFlushLog ( bool f)
inline

Definition at line 54 of file flush.h.

◆ setFlushStatus()

void drizzled::statement::Flush::setFlushStatus ( bool f)
inline

Definition at line 59 of file flush.h.

◆ setFlushTables()

void drizzled::statement::Flush::setFlushTables ( bool f)
inline

Definition at line 55 of file flush.h.

◆ setFlushTablesWithReadLock()

void drizzled::statement::Flush::setFlushTablesWithReadLock ( bool f)
inline

Definition at line 56 of file flush.h.

Member Data Documentation

◆ flush_global_status

bool drizzled::statement::Flush::flush_global_status
private

Definition at line 51 of file flush.h.

◆ flush_log

bool drizzled::statement::Flush::flush_log
private

Definition at line 47 of file flush.h.

◆ flush_status

bool drizzled::statement::Flush::flush_status
private

Definition at line 50 of file flush.h.

◆ flush_tables

bool drizzled::statement::Flush::flush_tables
private

Definition at line 48 of file flush.h.

◆ flush_tables_with_read_lock

bool drizzled::statement::Flush::flush_tables_with_read_lock
private

Definition at line 49 of file flush.h.


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