~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log.h

Merged uint fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
  char logname[FN_REFLEN];
80
80
  File fd;
81
81
  my_off_t file_length;
82
 
  uint npages, inited;
 
82
  uint32_t npages, inited;
83
83
  unsigned char *data;
84
84
  struct st_page *pages, *syncing, *active, *pool, *pool_last;
85
85
  /*
180
180
            enum cache_type io_cache_type_arg);
181
181
  void init(enum_log_type log_type_arg,
182
182
            enum cache_type io_cache_type_arg);
183
 
  void close(uint exiting);
 
183
  void close(uint32_t exiting);
184
184
  inline bool is_open() { return log_state != LOG_CLOSED; }
185
185
  const char *generate_name(const char *log_name, const char *suffix,
186
186
                            bool strip_ext, char *buff);
223
223
  ulong max_size;
224
224
  long prepared_xids; /* for tc log - number of xids to remember */
225
225
  // current file sequence number for load data infile binary logging
226
 
  uint file_id;
227
 
  uint open_count;                              // For replication
 
226
  uint32_t file_id;
 
227
  uint32_t open_count;                          // For replication
228
228
  int readers_count;
229
229
  bool need_start_event;
230
230
  /*
325
325
    v stands for vector
326
326
    invoked as appendv(buf1,len1,buf2,len2,...,bufn,lenn,0)
327
327
  */
328
 
  bool appendv(const char* buf,uint len,...);
 
328
  bool appendv(const char* buf,uint32_t len,...);
329
329
  bool append(Log_event* ev);
330
330
 
331
331
  void make_log_name(char* buf, const char* log_ident);
332
332
  bool is_active(const char* log_file_name);
333
333
  int update_log_index(LOG_INFO* linfo, bool need_update_threads);
334
 
  void rotate_and_purge(uint flags);
 
334
  void rotate_and_purge(uint32_t flags);
335
335
  bool flush_and_sync();
336
336
  int purge_logs(const char *to_log, bool included,
337
337
                 bool need_mutex, bool need_update_threads,
339
339
  int purge_logs_before_date(time_t purge_time);
340
340
  int purge_first_log(Relay_log_info* rli, bool included);
341
341
  bool reset_logs(THD* thd);
342
 
  void close(uint exiting);
 
342
  void close(uint32_t exiting);
343
343
 
344
344
  // iterating through the log index file
345
345
  int find_log_pos(LOG_INFO* linfo, const char* log_name,
347
347
  int find_next_log(LOG_INFO* linfo, bool need_mutex);
348
348
  int get_current_log(LOG_INFO* linfo);
349
349
  int raw_get_current_log(LOG_INFO* linfo);
350
 
  uint next_file_id();
 
350
  uint32_t next_file_id();
351
351
  inline char* get_index_fname() { return index_file_name;}
352
352
  inline char* get_log_fname() { return log_file_name; }
353
353
  inline char* get_name() { return name; }
378
378
{
379
379
  rw_lock_t LOCK_logger;
380
380
  /* flag to check whether logger mutex is initialized */
381
 
  uint inited;
 
381
  uint32_t inited;
382
382
 
383
383
  /* NULL-terminated arrays of log handlers */
384
384
  Log_event_handler *error_log_handler_list[MAX_LOG_HANDLERS_NUM + 1];
407
407
  bool error_log_print(enum loglevel level, const char *format,
408
408
                      va_list args);
409
409
  /* we use this function to setup all enabled log event handlers */
410
 
  int set_handlers(uint error_log_printer);
411
 
  void init_error_log(uint error_log_printer);
 
410
  int set_handlers(uint32_t error_log_printer);
 
411
  void init_error_log(uint32_t error_log_printer);
412
412
};
413
413
 
414
414
enum enum_binlog_format {