Skip to content

Commit

Permalink
Small refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbi42 committed Sep 15, 2023
1 parent ad96a62 commit 8d5e5b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db/arena_wrapped_db_iter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "db/arena_wrapped_db_iter.h"

#include "db/snapshot_impl.h"
#include "memory/arena.h"
#include "rocksdb/env.h"
#include "rocksdb/iterator.h"
Expand All @@ -22,7 +21,7 @@ namespace ROCKSDB_NAMESPACE {

inline static SequenceNumber GetSeqNum(const DBImpl* db, const Snapshot* s) {
if (s) {
return static_cast_with_check<const SnapshotImpl>(s)->number_;
return s->GetSequenceNumber();
} else {
return db->GetLatestSequenceNumber();
}
Expand Down

0 comments on commit 8d5e5b5

Please sign in to comment.