~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to drizzled/statement/flush.h

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
public:
36
36
  Flush(Session *in_session)
37
37
    :
38
 
      Statement(in_session)
 
38
    Statement(in_session),
 
39
    flush_log(false),
 
40
    flush_tables(false),
 
41
    flush_tables_with_read_lock(false),
 
42
    flush_status(false)
39
43
  {}
40
44
 
41
45
  bool execute();
42
46
 
43
47
private:
 
48
  bool flush_log;
 
49
  bool flush_tables;
 
50
  bool flush_tables_with_read_lock;
 
51
  bool flush_status;
 
52
 
 
53
public:
 
54
  void setFlushLog(bool f) { flush_log= f; }
 
55
  void setFlushTables(bool f) { flush_tables= f; }
 
56
  void setFlushTablesWithReadLock(bool f) {
 
57
    flush_tables= flush_tables_with_read_lock= f;
 
58
  }
 
59
  void setFlushStatus(bool f) { flush_status= f; }
 
60
 
 
61
private:
44
62
 
45
63
  /**
46
64
   * Reload/resets privileges and the different caches.