~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Jay Pipes
  • Date: 2009-08-03 14:23:22 UTC
  • mfrom: (1039.2.68 staging)
  • mto: This revision was merged to the branch mainline in revision 1078.
  • Revision ID: jpipes@serialcoder-20090803142322-1g67h7su9mocg9ig
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
  bool engine_condition_pushdown;
146
146
 
147
147
  uint32_t optimizer_search_depth;
148
 
  /*
149
 
    Controls use of Engine-MRR:
150
 
      0 - auto, based on cost
151
 
      1 - force MRR when the storage engine is capable of doing it
152
 
      2 - disable MRR.
153
 
  */
154
 
  uint32_t optimizer_use_mrr;
155
148
  /* A bitmap for switching optimizations on/off */
156
149
  uint32_t optimizer_switch;
157
150
  uint32_t div_precincrement;
552
545
  uint32_t max_client_packet_length; /**< Maximum number of bytes a client can send in a single packet */
553
546
  time_t start_time;
554
547
  time_t user_time;
555
 
  uint64_t connect_utime;
556
548
  uint64_t thr_create_utime; /**< track down slow pthread_create */
557
549
  uint64_t start_utime;
558
550
  uint64_t utime_after_lock;
1047
1039
    if (user_time)
1048
1040
    {
1049
1041
      start_time= user_time;
1050
 
      start_utime= utime_after_lock= my_micro_time();
 
1042
      connect_microseconds= start_utime= utime_after_lock= my_micro_time();
1051
1043
    }
1052
1044
    else
1053
1045
      start_utime= utime_after_lock= my_micro_time_and_time(&start_time);
1267
1259
   * @param  Database name to connect to, may be NULL
1268
1260
   */
1269
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
  }
1270
1271
 
1271
1272
private:
 
1273
  /** Microsecond timestamp of when Session connected */
 
1274
  uint64_t connect_microseconds;
1272
1275
  const char *proc_info;
1273
1276
 
1274
1277
  /** The current internal error handler for this thread, or NULL. */