summaryrefslogtreecommitdiff
path: root/storage/maria/maria_def.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-05-26 00:22:52 +0300
committerMonty <monty@mariadb.org>2020-05-27 15:47:10 +0300
commitc52e62a76f48173df23ec4680a00edd1882e025f (patch)
tree0acb06bcd0c4f014a5c2d029dfa29b4abcf4359a /storage/maria/maria_def.h
parent514533eb9a0be392392e2de5a41e863880075efd (diff)
downloadmariadb-git-c52e62a76f48173df23ec4680a00edd1882e025f.tar.gz
Improve logging of Aria redo's and undo's
- Remove extra ',' and quotes - Remove extra newline and remove double newlines - Added options --lsn-redo-end and --lsn-undo-end to aria_read_log - Allow one to give the aria_read_log lsn aruments as number,0xhexnumber, the same way as lsn's are written by aria_read_log - Don't write full pages to redo log with EXTRA_DEBUG as this takes up a lot of disk and there has not been a need for this extra loggging for a long time. Instead one should use EXTRA_ARIA_DEBUG instead.
Diffstat (limited to 'storage/maria/maria_def.h')
-rw-r--r--storage/maria/maria_def.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/storage/maria/maria_def.h b/storage/maria/maria_def.h
index f7cb7eb27c3..21101ae6f86 100644
--- a/storage/maria/maria_def.h
+++ b/storage/maria/maria_def.h
@@ -36,16 +36,23 @@ C_MODE_START
#include <waiting_threads.h>
#include <mysql/psi/mysql_file.h>
-/* For testing recovery */
-#ifdef TO_BE_REMOVED
-#define IDENTICAL_PAGES_AFTER_RECOVERY 1
-#endif
/* Do extra sanity checking */
#define SANITY_CHECKS 1
#ifdef EXTRA_DEBUG
#define EXTRA_DEBUG_KEY_CHANGES
+#endif
+/*
+ The following defines can be used when one has problems with redo logging
+ Setting this will log the full key page which can be compared with the
+ redo-changed key page. This will however make the aria log files MUCH bigger.
+*/
+#if defined(EXTRA_ARIA_DEBUG)
#define EXTRA_STORE_FULL_PAGE_IN_KEY_CHANGES
#endif
+/* For testing recovery */
+#ifdef TO_BE_REMOVED
+#define IDENTICAL_PAGES_AFTER_RECOVERY 1
+#endif
#define MAX_NONMAPPED_INSERTS 1000
#define MARIA_MAX_TREE_LEVELS 32