diff --git a/src/blockstore/blockstore_heap.cpp b/src/blockstore/blockstore_heap.cpp index 937e106f..5eaba79b 100644 --- a/src/blockstore/blockstore_heap.cpp +++ b/src/blockstore/blockstore_heap.cpp @@ -1099,27 +1099,6 @@ heap_entry_t *blockstore_heap_t::lock_and_read_entry(object_id oid) return obj; } -heap_entry_t *blockstore_heap_t::read_locked_entry(object_id oid, uint64_t lsn) -{ - auto obj = read_entry(oid); - assert(obj); - for (auto wr = obj; wr; wr = prev(wr)) - { - if (wr->is_overwrite()) - { - if (lsn == wr->lsn) - { - return obj; - } - else - { - obj = prev(wr); - } - } - } - return NULL; -} - bool blockstore_heap_t::unlock_entry(object_id oid) { auto mvcc_it = object_mvcc.find(oid); diff --git a/src/blockstore/blockstore_heap.h b/src/blockstore/blockstore_heap.h index a677865f..ff753c29 100644 --- a/src/blockstore/blockstore_heap.h +++ b/src/blockstore/blockstore_heap.h @@ -254,8 +254,6 @@ public: // read an object entry and lock it against removal // in the future, may become asynchronous heap_entry_t *lock_and_read_entry(object_id oid); - // re-read a locked object entry with the given lsn (pointer may be invalidated) - heap_entry_t *read_locked_entry(object_id oid, uint64_t lsn); // read an object entry without locking it heap_entry_t *read_entry(object_id oid); // unlock an entry