~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/flush.h

  • Committer: Stewart Smith
  • Date: 2009-08-20 17:15:54 UTC
  • mto: (1119.2.2 merge)
  • mto: This revision was merged to the branch mainline in revision 1124.
  • Revision ID: stewart@flamingspork.com-20090820171554-72eo1tqlc4n64rak
Valgrind 3.5 requires --alignment to be a power of 2 between 16 and 4096. The specifying --alignment is not important for us, so remove it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/statement.h>
25
25
 
 
26
class Session;
 
27
 
26
28
namespace drizzled
27
29
{
28
 
class Session;
29
 
 
30
30
namespace statement
31
31
{
32
32
 
35
35
public:
36
36
  Flush(Session *in_session)
37
37
    :
38
 
    Statement(in_session),
39
 
    flush_log(false),
40
 
    flush_tables(false),
41
 
    flush_tables_with_read_lock(false),
42
 
    flush_status(false)
 
38
      Statement(in_session, SQLCOM_FLUSH)
43
39
  {}
44
40
 
45
41
  bool execute();
46
42
 
47
43
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:
62
44
 
63
45
  /**
64
46
   * Reload/resets privileges and the different caches.
76
58
  bool reloadCache();
77
59
};
78
60
 
79
 
} /* namespace statement */
 
61
} /* end namespace statement */
80
62
 
81
 
} /* namespace drizzled */
 
63
} /* end namespace drizzled */
82
64
 
83
65
#endif /* DRIZZLED_STATEMENT_FLUSH_H */