Commit 01d12948 authored by Kentoku SHIBA's avatar Kentoku SHIBA

crash if data node down before commit

parent d64c8251
...@@ -3114,6 +3114,7 @@ int spider_commit( ...@@ -3114,6 +3114,7 @@ int spider_commit(
error_num = tmp_error_num; error_num = tmp_error_num;
} }
trx->trx_xa = FALSE; trx->trx_xa = FALSE;
trx->join_trx_top = NULL;
} else { } else {
if ((conn = spider_tree_first(trx->join_trx_top))) if ((conn = spider_tree_first(trx->join_trx_top)))
{ {
...@@ -3183,6 +3184,7 @@ int spider_rollback( ...@@ -3183,6 +3184,7 @@ int spider_rollback(
error_num = tmp_error_num; error_num = tmp_error_num;
} }
trx->trx_xa = FALSE; trx->trx_xa = FALSE;
trx->join_trx_top = NULL;
} else { } else {
if ((conn = spider_tree_first(trx->join_trx_top))) if ((conn = spider_tree_first(trx->join_trx_top)))
{ {
......
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