Commit c9ac48f8 authored by Krunal Bauskar's avatar Krunal Bauskar Committed by Nirbhay Choubey

- PXC#592: Tried closing fk-reference-table that was never opened.

  Function "wsrep_row_upd_check_foreign_constraints" tried to mark
  fk-reference-table opened without ensuring it table is really opened.
parent 88a1592b
......@@ -410,7 +410,7 @@ wsrep_row_upd_check_foreign_constraints(
dict_table_open_on_name(
foreign->referenced_table_name_lookup,
FALSE, FALSE, DICT_ERR_IGNORE_NONE);
opened = TRUE;
opened = (foreign->referenced_table) ? TRUE : FALSE;
}
if (foreign->referenced_table) {
......@@ -433,7 +433,7 @@ wsrep_row_upd_check_foreign_constraints(
->n_foreign_key_checks_running);
if (opened == TRUE) {
dict_table_close(foreign->referenced_table, TRUE, FALSE);
dict_table_close(foreign->referenced_table, FALSE, FALSE);
opened = 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