summaryrefslogtreecommitdiff
path: root/storage/innobase/row/row0mysql.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/row/row0mysql.cc')
-rw-r--r--storage/innobase/row/row0mysql.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/innobase/row/row0mysql.cc b/storage/innobase/row/row0mysql.cc
index 2b5f082c830..f1145282e52 100644
--- a/storage/innobase/row/row0mysql.cc
+++ b/storage/innobase/row/row0mysql.cc
@@ -2476,7 +2476,8 @@ rollback:
fts_optimize_add_table(table);
}
trx->rollback();
- row_mysql_unlock_data_dictionary(trx);
+ if (trx->dict_operation_lock_mode)
+ row_mysql_unlock_data_dictionary(trx);
return err;
}
}