~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2009-05-30 22:30:05 UTC
  • mto: This revision was merged to the branch mainline in revision 1045.
  • Revision ID: brian@gaz-20090530223005-hmylm6iywddfentm
A lot of little cleanups (most based off lcov)

Show diffs side-by-side

added added

removed removed

Lines of Context:
428
428
  THR_LOCK_OWNER *lock_id;              // If not main_lock_id, points to
429
429
                                        // the lock_id of a cursor.
430
430
  pthread_mutex_t LOCK_delete;          // Locked before session is deleted
 
431
 
431
432
  /*
432
433
    A peek into the query string for the session. This is a best effort
433
434
    delivery, there is no guarantee whether the content is meaningful.
434
435
  */
435
436
  char process_list_info[PROCESS_LIST_WIDTH+1];
 
437
 
436
438
  /*
437
439
    A pointer to the stack frame of handle_one_connection(),
438
440
    which is called first in the thread for handling a client
439
441
  */
440
 
  char    *thread_stack;
 
442
  char *thread_stack;
441
443
 
442
444
  /**
443
445
    Currently selected catalog.
1187
1189
  */
1188
1190
  MEM_ROOT main_mem_root;
1189
1191
 
 
1192
  /* This is currently in sql_base.cc and should be refactored into session.cc */
 
1193
  void close_open_tables();
 
1194
  void mark_used_tables_as_free_for_reuse(Table *table);
 
1195
  void mark_temp_tables_as_free_for_reuse();
 
1196
 
1190
1197
public:
1191
1198
  /** A short cut for session->main_da.set_ok_status(). */
1192
1199
  inline void my_ok(ha_rows affected_rows= 0, uint64_t passed_id= 0, const char *message= NULL)
1225
1232
  }
1226
1233
  void refresh_status();
1227
1234
  user_var_entry *getVariable(LEX_STRING &name, bool create_if_not_exists);
 
1235
  void close_thread_tables();
1228
1236
};
1229
1237
 
1230
1238
/*