Commit 9f6a0d29 authored by Marko Mäkelä's avatar Marko Mäkelä

row_purge_parse_undo_rec(): Deduplicate some code

parent 68466bb4
...@@ -1000,9 +1000,7 @@ row_purge_parse_undo_rec( ...@@ -1000,9 +1000,7 @@ row_purge_parse_undo_rec(
ut_ad(!dict_table_is_temporary(node->table)); ut_ad(!dict_table_is_temporary(node->table));
if (!fil_table_accessible(node->table)) { if (!fil_table_accessible(node->table)) {
dict_table_close(node->table, FALSE, FALSE); goto close_exit;
node->table = NULL;
goto err_exit;
} }
if (node->table->n_v_cols && !node->table->vc_templ if (node->table->n_v_cols && !node->table->vc_templ
...@@ -1031,6 +1029,7 @@ row_purge_parse_undo_rec( ...@@ -1031,6 +1029,7 @@ row_purge_parse_undo_rec(
we do not have an index to call it with. */ we do not have an index to call it with. */
close_exit: close_exit:
dict_table_close(node->table, FALSE, FALSE); dict_table_close(node->table, FALSE, FALSE);
node->table = NULL;
err_exit: err_exit:
rw_lock_s_unlock(dict_operation_lock); rw_lock_s_unlock(dict_operation_lock);
return(false); return(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment