~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Jay Pipes
  • Date: 2009-03-16 02:52:26 UTC
  • mto: This revision was merged to the branch mainline in revision 941.
  • Revision ID: jpipes@serialcoder-20090316025226-bs0fprh0cxony7z9
This changeset removes a few more  C functions from sql_connect.cc/connect.h
and houses them as member methods of the session object.  Added documentation
where I could and cleaned up the code style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
888
888
  void cleanup_after_query();
889
889
  bool store_globals();
890
890
  void awake(Session::killed_state state_to_set);
 
891
  /**
 
892
   * Pulls thread-specific variables into Session state.
 
893
   *
 
894
   * Returns true most times, or false if there was a problem
 
895
   * allocating resources for thread-specific storage.
 
896
   *
 
897
   * @TODO Kill this.  It's not necessary once my_thr_init() is bye bye.
 
898
   *
 
899
   */
 
900
  bool initGlobals();
 
901
 
 
902
  /**
 
903
   * Initializes the Session to handle queries.
 
904
   */
 
905
  void prepareForQueries();
891
906
 
892
907
  /**
893
908
   * Authenticates users, with error reporting.
1143
1158
  void reset_for_next_command();
1144
1159
 
1145
1160
  /**
1146
 
    Close the current connection.
1147
 
  */
1148
 
  void close_connection(uint32_t errcode, bool lock);
 
1161
   * Disconnects the session from a client connection and
 
1162
   * updates any status variables necessary.
 
1163
   *
 
1164
   * @param errcode     Error code to print to console
 
1165
   * @param should_lock 1 if we have have to lock LOCK_thread_count
 
1166
   *
 
1167
   * @note  For the connection that is doing shutdown, this is called twice
 
1168
   */
 
1169
  void disconnect(uint32_t errcode, bool lock);
1149
1170
  void close_temporary_tables();
1150
1171
 
1151
1172
private: