summaryrefslogtreecommitdiff
path: root/storage/innobase/include
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-10-19 15:16:47 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-10-19 15:16:47 +0300
commit28098420317bc2efe082df799c917babde879242 (patch)
treef23f44991f3ba07d108061388d500d74c06ead3b /storage/innobase/include
parentfa929f7cdf71e351a64639815d84ae5d4f3dc053 (diff)
downloadmariadb-git-28098420317bc2efe082df799c917babde879242.tar.gz
MDEV-20864 Introduce debug option innodb_change_buffer_dump
To diagnose a hang in slow shutdown (innodb_fast_shutdown=0), let us introduce a Boolean startup option in debug builds that will cause the contents of the InnoDB change buffer to be dumped to the server error log at startup.
Diffstat (limited to 'storage/innobase/include')
-rw-r--r--storage/innobase/include/dict0types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/innobase/include/dict0types.h b/storage/innobase/include/dict0types.h
index 93c2f570e54..bea08f398de 100644
--- a/storage/innobase/include/dict0types.h
+++ b/storage/innobase/include/dict0types.h
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2013, 2017, MariaDB Corporation.
+Copyright (c) 2013, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -96,6 +96,8 @@ typedef ib_mutex_t DictSysMutex;
#define TEMP_TABLE_PATH_PREFIX "/" TEMP_TABLE_PREFIX
#if defined UNIV_DEBUG || defined UNIV_IBUF_DEBUG
+/** Dump the change buffer at startup */
+extern my_bool ibuf_dump;
/** Flag to control insert buffer debugging. */
extern uint ibuf_debug;
#endif /* UNIV_DEBUG || UNIV_IBUF_DEBUG */