summaryrefslogtreecommitdiff
path: root/storage/innobase/row/row0upd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/row/row0upd.cc')
-rw-r--r--storage/innobase/row/row0upd.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/row/row0upd.cc b/storage/innobase/row/row0upd.cc
index 41cae945c99..88cd90fe778 100644
--- a/storage/innobase/row/row0upd.cc
+++ b/storage/innobase/row/row0upd.cc
@@ -157,7 +157,7 @@ wsrep_row_upd_index_is_foreign(
/* No MDL protects dereferencing the members of table->foreign_set. */
const bool no_lock= !trx->dict_operation_lock_mode;
if (no_lock)
- dict_sys.mutex_lock();
+ dict_sys.freeze(SRW_LOCK_CALL);
auto end= table->foreign_set.end();
const bool is_referenced= end !=
@@ -165,7 +165,7 @@ wsrep_row_upd_index_is_foreign(
[index](const dict_foreign_t* f)
{return f->foreign_index == index;});
if (no_lock)
- dict_sys.mutex_unlock();
+ dict_sys.unfreeze();
return is_referenced;
}