summaryrefslogtreecommitdiff
path: root/storage/innobase/include/sync0arr.h
diff options
context:
space:
mode:
authorJan Lindström <jplindst@mariadb.org>2014-11-03 15:43:44 +0200
committerJan Lindström <jplindst@mariadb.org>2014-11-03 15:43:44 +0200
commit2da6f7cebae5a224f1f982981103a15a2ecda59a (patch)
tree45aad24ae7ce66a997edf9c40d228ff6c7fb6d04 /storage/innobase/include/sync0arr.h
parent50556e7e9ac3cf0bad629cc3eb4b57f82cf807e4 (diff)
downloadmariadb-git-2da6f7cebae5a224f1f982981103a15a2ecda59a.tar.gz
MDEV-7017: Add function to print semaphore waits
Add function to print to stderr all current semaphore waits. This function should be able to executed inside a gdb/ddd.
Diffstat (limited to 'storage/innobase/include/sync0arr.h')
-rw-r--r--storage/innobase/include/sync0arr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/innobase/include/sync0arr.h b/storage/innobase/include/sync0arr.h
index 4bce9435577..a31c61a3806 100644
--- a/storage/innobase/include/sync0arr.h
+++ b/storage/innobase/include/sync0arr.h
@@ -138,6 +138,12 @@ sync_array_print_info(
sync_array_t* arr); /*!< in: wait array */
+/**********************************************************************//**
+Prints info of the wait array without using any mutexes/semaphores. */
+UNIV_INTERN
+void
+sync_array_print_innodb(void);
+
#ifndef UNIV_NONINL
#include "sync0arr.ic"
#endif