Commit 508e715c authored by Vasil Dimov's avatar Vasil Dimov Committed by Jan Lindström

Fix compilation error in row0ins.c

row0ins.c:1437:6: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
enum wsrep_key_type key_type = WSREP_KEY_EXCLUSIVE;
^
parent 27dcef39
......@@ -1434,9 +1434,11 @@ row_ins_check_foreign_constraint(
}
if (check_ref) {
err = DB_SUCCESS;
#ifdef WITH_WSREP
enum wsrep_key_type key_type = WSREP_KEY_EXCLUSIVE;
#endif /* WITH_WSREP */
err = DB_SUCCESS;
#ifdef WITH_WSREP
if (upd_node != NULL) {
key_type = WSREP_KEY_SHARED;
} else {
......
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