[BUG] add seq no reverse check into the same sql check

This commit is contained in:
Handora
2024-02-09 05:38:27 +00:00
committed by ob-robot
parent ee9eb195ba
commit 5fd93005c8

View File

@ -150,7 +150,9 @@ int check_sequence_set_violation(const concurrent_control::ObWriteFlag write_fla
K(writer_tx_id), K(writer_dml_flag), K(writer_seq_no),
K(locker_tx_id), K(locker_dml_flag), K(locker_seq_no));
}
} else if (writer_seq_no < locker_seq_no) {
}
if (OB_SUCC(ret) && writer_seq_no < locker_seq_no) {
// We need guarantee the right sequence of the same txn operations
ret = OB_ERR_UNEXPECTED;
TRANS_LOG(ERROR, "wrong row of sequence on one row found", K(reader_seq_no),