~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
 
152
152
};
153
153
 
154
 
struct DrizzleLock
155
 
{
156
 
  Table **table;
157
 
  uint32_t table_count;
158
 
  uint32_t lock_count;
159
 
  THR_LOCK_DATA **locks;
160
 
 
161
 
  DrizzleLock() :
162
 
    table(0),
163
 
    table_count(0),
164
 
    lock_count(0),
165
 
    locks(0)
166
 
  { }
167
 
 
168
 
};
169
 
 
170
154
} /* namespace drizzled */
171
155
 
172
156
/** @TODO why is this in the middle of the file */
1215
1199
   * @param  Length of scrambled password
1216
1200
   * @param  Database name to connect to, may be NULL
1217
1201
   */
1218
 
  bool checkUser(const char *passwd, uint32_t passwd_len, const char *db);
 
1202
  bool checkUser(const std::string &passwd, const std::string &db);
1219
1203
  
1220
1204
  /**
1221
1205
   * Returns the timestamp (in microseconds) of when the Session 
1539
1523
 
1540
1524
  /* Reopen operations */
1541
1525
  bool reopen_tables(bool get_locks, bool mark_share_as_old);
1542
 
  bool reopen_name_locked_table(TableList* table_list, bool link_in);
 
1526
  bool reopen_name_locked_table(TableList* table_list);
1543
1527
  bool close_cached_tables(TableList *tables, bool wait_for_refresh, bool wait_for_placeholders);
1544
1528
 
1545
1529
  void wait_for_condition(boost::mutex &mutex, boost::condition_variable_any &cond);