[BUGFIX] fix the incomplete condition of tx_node

This commit is contained in:
YangEfei
2024-08-09 12:02:26 +00:00
committed by ob-robot
parent 25e8eeff24
commit 10a338b2b1

View File

@ -382,7 +382,7 @@ int ObMvccEngine::build_tx_node_(const ObTxNodeArg &arg,
// SSTable check might fail, potentially causing data that is in an
// incomplete state to be seen. Therefore, we use the INCOMPLETE state
// to prevent such data from being erroneously visible.
if (!node->scn_.is_valid()) {
if (node->scn_.is_max()) { // leader write
node->set_incomplete();
}
}