summaryrefslogtreecommitdiff
path: root/sql/mysqld.h
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2021-08-20 12:54:53 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2021-09-03 09:07:03 +0300
commit1bc82aaf0a7746c0921a94034aff2d51f0d75cd0 (patch)
treeae9ebd0f09182fab0974fc78d6de1a00dea50900 /sql/mysqld.h
parent21ce69123c130e170b3bc3892ec859e4bc1999ca (diff)
downloadmariadb-git-1bc82aaf0a7746c0921a94034aff2d51f0d75cd0.tar.gz
MDEV-26352 : Add new thread states for certain WSREP scenarios
This adds following new thread states: * waiting to execute in isolation - DDL is waiting to execute in TOI mode. * waiting for TOI DDL - some other statement is waiting for DDL to complete. * waiting for flow control - some statement is paused while flow control is in effect. * waiting for certification - the transaction is being certified.
Diffstat (limited to 'sql/mysqld.h')
-rw-r--r--sql/mysqld.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/mysqld.h b/sql/mysqld.h
index 12dca3d012e..8c0b92c6446 100644
--- a/sql/mysqld.h
+++ b/sql/mysqld.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2006, 2016, Oracle and/or its affiliates.
- Copyright (c) 2010, 2020, MariaDB Corporation.
+ Copyright (c) 2010, 2021, 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
@@ -679,6 +679,13 @@ extern PSI_stage_info stage_slave_background_process_request;
extern PSI_stage_info stage_slave_background_wait_request;
extern PSI_stage_info stage_waiting_for_deadlock_kill;
extern PSI_stage_info stage_starting;
+#ifdef WITH_WSREP
+// Aditional Galera thread states
+extern PSI_stage_info stage_waiting_isolation;
+extern PSI_stage_info stage_waiting_certification;
+extern PSI_stage_info stage_waiting_ddl;
+extern PSI_stage_info stage_waiting_flow;
+#endif /* WITH_WSREP */
#ifdef HAVE_PSI_STATEMENT_INTERFACE
/**