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

Commit bff435f

Browse files
committed
Remove redundant ownership checks
1 parent 60ad5f5 commit bff435f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/codegen/deleter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ void Deleter::Delete(uint32_t tile_group_id, uint32_t tuple_offset) {
4141

4242
auto &txn_manager = concurrency::TransactionManagerFactory::GetInstance();
4343

44-
bool is_owner =
45-
TransactionRuntime::IsOwner(*txn, tile_group_header, tuple_offset);
44+
bool is_owner = txn_manager.IsOwner(txn, tile_group_header, tuple_offset);
4645
bool is_written = txn_manager.IsWritten(txn, tile_group_header, tuple_offset);
4746

4847
ItemPointer old_location{tile_group_id, tuple_offset};

0 commit comments

Comments
 (0)