~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/server_includes.h

  • Committer: Brian Aker
  • Date: 2009-03-05 08:26:07 UTC
  • mfrom: (910.2.11 mordred-noatomics)
  • Revision ID: brian@tangent.org-20090305082607-30deookk6sdycdeb
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
extern FILE *stderror_file;
165
165
extern pthread_mutex_t LOCK_drizzleclient_create_db,LOCK_open, LOCK_lock_db,
166
166
       LOCK_thread_count,LOCK_user_locks, LOCK_status,
167
 
       LOCK_timezone,
168
167
       LOCK_global_read_lock,
169
 
       LOCK_global_system_variables, LOCK_user_conn,
170
 
       LOCK_bytes_sent, LOCK_bytes_received, LOCK_connection_count;
171
 
extern pthread_mutex_t LOCK_server_started;
 
168
       LOCK_global_system_variables;
 
169
 
172
170
extern pthread_rwlock_t LOCK_sys_init_connect;
173
171
extern pthread_rwlock_t LOCK_system_variables_hash;
174
 
extern pthread_cond_t COND_refresh, COND_thread_count, COND_manager;
 
172
extern pthread_cond_t COND_refresh, COND_thread_count;
175
173
extern pthread_cond_t COND_global_read_lock;
176
174
extern pthread_attr_t connection_attrib;
177
175
extern I_List<Session> threads;
192
190
extern std::bitset<5> sql_command_flags[];
193
191
extern TYPELIB log_output_typelib;
194
192
 
195
 
/* optional things, have_* variables */
196
 
extern SHOW_COMP_OPTION have_community_features;
197
 
 
198
193
extern handlerton *myisam_hton;
199
194
extern handlerton *heap_hton;
200
195
 
224
219
uint32_t convert_month_to_period(uint32_t month);
225
220
void get_date_from_daynr(long daynr,uint32_t *year, uint32_t *month,
226
221
                         uint32_t *day);
227
 
time_t TIME_to_timestamp(Session *session, const DRIZZLE_TIME *t, bool *not_exist);
228
222
bool str_to_time_with_warn(const char *str,uint32_t length,DRIZZLE_TIME *l_time);
229
223
enum enum_drizzle_timestamp_type str_to_datetime_with_warn(const char *str, uint32_t length,
230
224
                                         DRIZZLE_TIME *l_time, uint32_t flags);
277
271
                     const char *newname);
278
272
ulong next_io_size(ulong pos);
279
273
void append_unescaped(String *res, const char *pos, uint32_t length);
280
 
int create_frm(Session *session, const char *name, const char *db, const char *table,
281
 
               uint32_t reclength, unsigned char *fileinfo,
282
 
               HA_CREATE_INFO *create_info, uint32_t keys, KEY *key_info);
283
274
int rename_table_proto_file(const char *from, const char* to);
284
275
int delete_table_proto_file(const char *file_name);
285
276
int rename_file_ext(const char * from,const char * to,const char * ext);
294
285
uint32_t build_table_filename(char *buff, size_t bufflen, const char *db,
295
286
                          const char *table, const char *ext, uint32_t flags);
296
287
 
297
 
#define MYSQL50_TABLE_NAME_PREFIX         "#mysql50#"
298
 
#define MYSQL50_TABLE_NAME_PREFIX_LENGTH  sizeof(MYSQL50_TABLE_NAME_PREFIX)
299
 
 
300
288
/* Flags for conversion functions. */
301
289
#define FN_FROM_IS_TMP  (1 << 0)
302
290
#define FN_TO_IS_TMP    (1 << 1)