From 8d5e5b580887c9b5b93ee7b886cf50615b186760 Mon Sep 17 00:00:00 2001 From: Changyu Bi Date: Thu, 14 Sep 2023 21:29:58 -0700 Subject: [PATCH] Small refactor. --- db/arena_wrapped_db_iter.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/arena_wrapped_db_iter.cc b/db/arena_wrapped_db_iter.cc index e075bd06cd9..865b1ad2eb3 100644 --- a/db/arena_wrapped_db_iter.cc +++ b/db/arena_wrapped_db_iter.cc @@ -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" @@ -22,7 +21,7 @@ namespace ROCKSDB_NAMESPACE { inline static SequenceNumber GetSeqNum(const DBImpl* db, const Snapshot* s) { if (s) { - return static_cast_with_check(s)->number_; + return s->GetSequenceNumber(); } else { return db->GetLatestSequenceNumber(); }