summaryrefslogtreecommitdiff
path: root/sql/mdl.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-08-26 11:30:20 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-08-26 11:30:20 +0300
commit1e08e08ccb8896c1f0d2f673c16f5b92cdf7dc46 (patch)
tree2bcef1f1398c85a665743208ec0a856f884b6a84 /sql/mdl.cc
parent88e70f4caea34e0d7677b1fa646151b8b87dd3ab (diff)
parent6a042281bdbfe91cc39e1f6e02295bfe7eaa9d43 (diff)
downloadmariadb-git-1e08e08ccb8896c1f0d2f673c16f5b92cdf7dc46.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'sql/mdl.cc')
-rw-r--r--sql/mdl.cc27
1 files changed, 8 insertions, 19 deletions
diff --git a/sql/mdl.cc b/sql/mdl.cc
index 97135890f09..54128c2ee97 100644
--- a/sql/mdl.cc
+++ b/sql/mdl.cc
@@ -24,9 +24,6 @@
#include <mysql/plugin.h>
#include <mysql/service_thd_wait.h>
#include <mysql/psi/mysql_stage.h>
-#ifdef WITH_WSREP
-#include "wsrep_sst.h"
-#endif
#ifdef HAVE_PSI_INTERFACE
static PSI_mutex_key key_MDL_wait_LOCK_wait_status;
@@ -2328,26 +2325,18 @@ MDL_context::acquire_lock(MDL_request *mdl_request, double lock_wait_timeout)
wait_status= m_wait.timed_wait(m_owner, &abs_shortwait, FALSE,
mdl_request->key.get_wait_state_name());
- THD* thd= m_owner->get_thd();
-
if (wait_status != MDL_wait::EMPTY)
break;
/* Check if the client is gone while we were waiting. */
- if (! thd_is_connected(thd))
+ if (! thd_is_connected(m_owner->get_thd()))
{
-#if defined(WITH_WSREP) && !defined(EMBEDDED_LIBRARY)
- // During SST client might not be connected
- if (!wsrep_is_sst_progress())
-#endif
- {
- /*
- * The client is disconnected. Don't wait forever:
- * assume it's the same as a wait timeout, this
- * ensures all error handling is correct.
- */
- wait_status= MDL_wait::TIMEOUT;
- break;
- }
+ /*
+ * The client is disconnected. Don't wait forever:
+ * assume it's the same as a wait timeout, this
+ * ensures all error handling is correct.
+ */
+ wait_status= MDL_wait::TIMEOUT;
+ break;
}
mysql_prlock_wrlock(&lock->m_rwlock);