diff options
author | Michael Widenius <monty@mysql.com> | 2009-01-16 00:25:53 +0200 |
---|---|---|
committer | Michael Widenius <monty@mysql.com> | 2009-01-16 00:25:53 +0200 |
commit | 3fca23902cdf36bdc52f2d5826bfd24c2024feb8 (patch) | |
tree | b22b92e6f525233e951763dd718aa9415c513219 /storage/maria/ma_loghandler.h | |
parent | a955efc40c965dd8b19a18b2eef439d9166bb132 (diff) | |
download | mariadb-git-3fca23902cdf36bdc52f2d5826bfd24c2024feb8.tar.gz |
Log queries to maria_log if compiled with EXTRA_DEBUG
Added DBUG_ASSERT() to unlikely error senario
Don't use errno == 0 in maria_create() / myisam_create()
sql/sql_insert.cc:
Added DBUG_ASSERT() for case that should never happen in real life
Added my_error() to avoid assert if mysql_lock() or postlock() doesn't call my_error()
storage/maria/ha_maria.cc:
Log queries to maria_log if compiled with EXTRA_DEBUG
storage/maria/ma_create.c:
Don't use errno == 0
storage/maria/ma_loghandler.c:
Added logging of debug info to maria_log
storage/maria/ma_loghandler.h:
Added logging of debug info to maria_log
storage/maria/ma_recovery.c:
Added printing of debug info from maria_log
storage/maria/trnman.c:
Added functions to read/store state in TRN
storage/maria/trnman.h:
Added functions to read/store state in TRN
storage/maria/trnman_public.h:
Added state in TRN to remmeber if we have already logged the query
storage/myisam/mi_create.c:
Don't use errno == 0
Diffstat (limited to 'storage/maria/ma_loghandler.h')
-rw-r--r-- | storage/maria/ma_loghandler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/storage/maria/ma_loghandler.h b/storage/maria/ma_loghandler.h index 95d711d3eee..dba6283e303 100644 --- a/storage/maria/ma_loghandler.h +++ b/storage/maria/ma_loghandler.h @@ -144,6 +144,7 @@ enum translog_record_type LOGREC_UNDO_BULK_INSERT, LOGREC_REDO_BITMAP_NEW_PAGE, LOGREC_IMPORTED_TABLE, + LOGREC_DEBUG_INFO, LOGREC_FIRST_FREE, LOGREC_RESERVED_FUTURE_EXTENSION= 63 }; @@ -167,6 +168,12 @@ enum en_key_op KEY_OP_COMPACT_PAGE /* Compact key page */ }; + +enum translog_debug_info_type +{ + LOGREC_DEBUG_INFO_QUERY +}; + /* Size of log file; One log file is restricted to 4G */ typedef uint32 translog_size_t; @@ -323,6 +330,9 @@ translog_assign_id_to_share_from_recovery(struct st_maria_share *share, extern my_bool translog_walk_filenames(const char *directory, my_bool (*callback)(const char *, const char *)); +extern my_bool translog_log_debug_info(TRN *trn, + enum translog_debug_info_type type, + uchar *info, size_t length); enum enum_translog_status { |