refine is_root defination

This commit is contained in:
obdev
2022-12-29 12:38:05 +00:00
committed by ob-robot
parent 26f2754db2
commit efc06a1b8f
6 changed files with 49 additions and 19 deletions

View File

@ -111,6 +111,8 @@ TEST_F(TestMockObTxCtx, test_simple_tx_ctx1)
ctx1.ls_memo_[ctx2.addr_] = ls_id2;
ctx1.set_trans_type_(TransType::DIST_TRANS);
ctx1.upstream_state_ = ObTxState::INIT;
// set self to root
ctx1.exec_info_.upstream_ = ls_id1;
ctx1.set_downstream_state(ObTxState::REDO_COMPLETE);
ctx1.exec_info_.participants_.push_back(ls_id1);
ctx1.exec_info_.participants_.push_back(ls_id2);