[fix](txn_manager) Fix wrong use of std::map::erase in TxnManager::delete_txn #28507

This commit is contained in:
bobhan1
2023-12-16 14:50:46 +08:00
committed by GitHub
parent a3e2c6affe
commit ad8faedac4

View File

@ -652,8 +652,8 @@ Status TxnManager::delete_txn(OlapMeta* meta, TPartitionId partition_id,
<< (rowset != nullptr ? rowset->rowset_id().to_string() : "0");
}
}
it->second.erase(load_itr);
}
it->second.erase(load_itr);
if (it->second.empty()) {
txn_tablet_map.erase(it);
_clear_txn_partition_map_unlocked(transaction_id, partition_id);