summaryrefslogtreecommitdiff
path: root/innobase/row/row0ins.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/row/row0ins.c')
-rw-r--r--innobase/row/row0ins.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/innobase/row/row0ins.c b/innobase/row/row0ins.c
index d4947357719..3acddba8235 100644
--- a/innobase/row/row0ins.c
+++ b/innobase/row/row0ins.c
@@ -1032,8 +1032,10 @@ row_ins_check_foreign_constraint(
mtr_t mtr;
run_again:
+#ifdef UNIV_SYNC_DEBUG
ut_ad(rw_lock_own(&dict_operation_lock, RW_LOCK_SHARED));
-
+#endif /* UNIV_SYNC_DEBUG */
+
err = DB_SUCCESS;
if (thr_get_trx(thr)->check_foreigns == FALSE) {