Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 8afd1b7

Browse files
committed
Fix the last_tile_group_id optimization in TOTM.
1 parent 344c914 commit 8afd1b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/concurrency/timestamp_ordering_transaction_manager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ ResultType TimestampOrderingTransactionManager::CommitTransaction(
667667
if (tile_group_id != last_tile_group_id) {
668668
tile_group_header =
669669
storage_manager->GetTileGroup(tile_group_id)->GetHeader();
670+
last_tile_group_id = tile_group_id;
670671
}
671672

672673
if (tuple_entry.second == RWType::READ_OWN) {
@@ -826,6 +827,7 @@ ResultType TimestampOrderingTransactionManager::AbortTransaction(
826827
if (tile_group_id != last_tile_group_id) {
827828
tile_group_header =
828829
storage_manager->GetTileGroup(tile_group_id)->GetHeader();
830+
last_tile_group_id = tile_group_id;
829831
}
830832

831833
if (tuple_entry.second == RWType::READ_OWN) {

0 commit comments

Comments
 (0)