Remove unused read_locked_entry
This commit is contained in:
@@ -1099,27 +1099,6 @@ heap_entry_t *blockstore_heap_t::lock_and_read_entry(object_id oid)
|
|||||||
return obj;
|
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)
|
bool blockstore_heap_t::unlock_entry(object_id oid)
|
||||||
{
|
{
|
||||||
auto mvcc_it = object_mvcc.find(oid);
|
auto mvcc_it = object_mvcc.find(oid);
|
||||||
|
|||||||
@@ -254,8 +254,6 @@ public:
|
|||||||
// read an object entry and lock it against removal
|
// read an object entry and lock it against removal
|
||||||
// in the future, may become asynchronous
|
// in the future, may become asynchronous
|
||||||
heap_entry_t *lock_and_read_entry(object_id oid);
|
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
|
// read an object entry without locking it
|
||||||
heap_entry_t *read_entry(object_id oid);
|
heap_entry_t *read_entry(object_id oid);
|
||||||
// unlock an entry
|
// unlock an entry
|
||||||
|
|||||||
Reference in New Issue
Block a user