Fix of compiler errors.

storage/maria/ma_loghandler.c:
  Awoiding signed and unsigned comporison.
storage/maria/ma_loghandler.h:
  debug function.
storage/maria/unittest/ma_loghandler_examples.c:
  debug function.
This commit is contained in:
unknown 2011-05-16 16:13:34 +03:00
commit 157a945318
3 changed files with 5 additions and 1 deletions

View file

@ -458,7 +458,7 @@ void translog_lock_handler_assert_owner()
@param num how many records should be filled
*/
static max_allowed_translog_type= 0;
static uint max_allowed_translog_type= 0;
void check_translog_description_table(int num)
{

View file

@ -312,7 +312,9 @@ extern my_bool translog_init_with_table(const char *directory,
my_bool readonly,
void (*init_table_func)(),
my_bool no_error);
#ifndef DBUG_OFF
void check_translog_description_table(int num);
#endif
extern my_bool
translog_write_record(LSN *lsn, enum translog_record_type type, TRN *trn,

View file

@ -59,7 +59,9 @@ void translog_example_table_init()
i < LOGREC_NUMBER_OF_TYPES;
i++)
log_record_type_descriptor[i].rclass= LOGRECTYPE_NOT_ALLOWED;
#ifndef DBUG_OFF
check_translog_description_table(LOGREC_VARIABLE_RECORD_2LSN_EXAMPLE);
#endif
}