~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/flush.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-10 10:44:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110310104418-9nye3afuge7hnf5g
Statement::session()

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
  */
64
64
  if (flush_tables || flush_tables_with_read_lock)
65
65
  {
66
 
    if (getSession() && flush_tables_with_read_lock)
 
66
    if (&session() && flush_tables_with_read_lock)
67
67
    {
68
68
      if (session().lockGlobalReadLock())
69
69
      {
84
84
    }
85
85
  }
86
86
 
87
 
  if (getSession() && flush_status)
 
87
  if (&session() && flush_status)
88
88
  {
89
89
    session().refresh_status();
90
90
  }
91
91
 
92
 
  if (getSession() && flush_global_status)
 
92
  if (&session() && flush_global_status)
93
93
  {
94
94
    memset(&current_global_counters, 0, sizeof(current_global_counters));
95
 
    plugin::Logging::resetStats(getSession());
 
95
    plugin::Logging::resetStats(&session());
96
96
    session().refresh_status();
97
97
  }
98
98