~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

  • Committer: Brian Aker
  • Date: 2009-03-17 06:05:42 UTC
  • mfrom: (934.2.17 small-cleanups)
  • Revision ID: brian@tangent.org-20090317060542-a7ggj7l686cvxw31
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
  LEX_STRING user, host, password;
151
151
} LEX_USER;
152
152
 
153
 
/*
154
 
  This structure is used for counting resources consumed and for checking
155
 
  them against specified user limits.
156
 
*/
157
 
typedef struct  user_conn {
158
 
  /*
159
 
     Pointer to user+host key (pair separated by '\0') defining the entity
160
 
     for which resources are counted (By default it is user account thus
161
 
     priv_user/priv_host pair is used. If --old-style-user-limits option
162
 
     is enabled, resources are counted for each user+host separately).
163
 
  */
164
 
  char *user;
165
 
  /* Pointer to host part of the key. */
166
 
  char *host;
167
 
  /**
168
 
     The moment of time when per hour counters were reset last time
169
 
     (i.e. start of "hour" for conn_per_hour, updates, questions counters).
170
 
  */
171
 
  uint64_t reset_utime;
172
 
  /* Total length of the key. */
173
 
  uint32_t len;
174
 
  /* Current amount of concurrent connections for this account. */
175
 
  uint32_t connections;
176
 
  /*
177
 
     Current number of connections per hour, number of updating statements
178
 
     per hour and total number of statements per hour for this account.
179
 
  */
180
 
  uint32_t conn_per_hour, updates, questions;
181
 
} USER_CONN;
182
 
 
183
153
        /* Bits in form->update */
184
154
#define REG_MAKE_DUPP           1       /* Make a copy of record when read */
185
155
#define REG_NEW_RECORD          2       /* Write a new record if not found */