summaryrefslogtreecommitdiff
path: root/sql/mdl.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-08-26 10:45:47 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-08-26 10:45:47 +0300
commit6a042281bdbfe91cc39e1f6e02295bfe7eaa9d43 (patch)
tree54ae0a1b6b234dd1a1b6c4c93528be18197365e4 /sql/mdl.cc
parent65f30050aafb3821ba63a3b837c98cf4d2334254 (diff)
parent21a96581fd1dd11c5605dd89e3adbaabdf6de5eb (diff)
downloadmariadb-git-6a042281bdbfe91cc39e1f6e02295bfe7eaa9d43.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'sql/mdl.cc')
-rw-r--r--sql/mdl.cc25
1 files changed, 8 insertions, 17 deletions
diff --git a/sql/mdl.cc b/sql/mdl.cc
index da502053336..8d6780671d1 100644
--- a/sql/mdl.cc
+++ b/sql/mdl.cc
@@ -26,7 +26,6 @@
#include <mysql/psi/mysql_stage.h>
#include "wsrep_mysqld.h"
#include "wsrep_thd.h"
-#include "wsrep_sst.h"
#ifdef HAVE_PSI_INTERFACE
static PSI_mutex_key key_MDL_wait_LOCK_wait_status;
@@ -2148,26 +2147,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);