~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2009-07-29 18:35:48 UTC
  • mfrom: (1101.1.12 merge)
  • Revision ID: brian@gaz-20090729183548-yp36iwoaemfc76z0
Merging Monty (which includes new replication)

Show diffs side-by-side

added added

removed removed

Lines of Context:
545
545
  uint32_t max_client_packet_length; /**< Maximum number of bytes a client can send in a single packet */
546
546
  time_t start_time;
547
547
  time_t user_time;
548
 
  uint64_t connect_utime;
549
548
  uint64_t thr_create_utime; /**< track down slow pthread_create */
550
549
  uint64_t start_utime;
551
550
  uint64_t utime_after_lock;
1040
1039
    if (user_time)
1041
1040
    {
1042
1041
      start_time= user_time;
1043
 
      start_utime= utime_after_lock= my_micro_time();
 
1042
      connect_microseconds= start_utime= utime_after_lock= my_micro_time();
1044
1043
    }
1045
1044
    else
1046
1045
      start_utime= utime_after_lock= my_micro_time_and_time(&start_time);
1260
1259
   * @param  Database name to connect to, may be NULL
1261
1260
   */
1262
1261
  bool checkUser(const char *passwd, uint32_t passwd_len, const char *db);
 
1262
  
 
1263
  /**
 
1264
   * Returns the timestamp (in microseconds) of when the Session 
 
1265
   * connected to the server.
 
1266
   */
 
1267
  inline uint64_t getConnectMicroseconds() const
 
1268
  {
 
1269
    return connect_microseconds;
 
1270
  }
1263
1271
 
1264
1272
private:
 
1273
  /** Microsecond timestamp of when Session connected */
 
1274
  uint64_t connect_microseconds;
1265
1275
  const char *proc_info;
1266
1276
 
1267
1277
  /** The current internal error handler for this thread, or NULL. */