[DEBUG] add error log to debug invalid start_scn

This commit is contained in:
ZenoWang
2023-02-06 22:35:59 +08:00
committed by ob-robot
parent beb03d34ba
commit bd8d9f2cc1

View File

@ -825,6 +825,11 @@ int ObTxDataMemtable::do_sort_by_tx_id_()
int64_t get_start_ts_(const ObTxData &tx_data)
{
int ret = OB_SUCCESS;
if (!(tx_data.start_scn_.is_valid())) {
ret = OB_ERR_UNEXPECTED;
STORAGE_LOG(ERROR, "invalid start scn!!!", K(tx_data));
}
return tx_data.start_scn_.get_val_for_tx();
}