From a475e9f746ade38fd6f4167af0719b8304731de2 Mon Sep 17 00:00:00 2001 From: leipeng Date: Wed, 3 May 2023 08:52:03 -0700 Subject: [PATCH] DBIter::FindValueForCurrentKey: remove unused Status s (#11394) Summary: This PR remove a historical useless code Pull Request resolved: https://github.com/facebook/rocksdb/pull/11394 Reviewed By: ajkr Differential Revision: D45506226 Pulled By: akankshamahajan15 fbshipit-source-id: 32c98627100c9ad131bf65c4a1fe97ab61502daf --- db/db_iter.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/db/db_iter.cc b/db/db_iter.cc index efa5746ff..3d980c878 100644 --- a/db/db_iter.cc +++ b/db/db_iter.cc @@ -964,9 +964,6 @@ bool DBIter::FindValueForCurrentKey() { assert(last_key_entry_type == ikey_.type); } - Status s; - s.PermitUncheckedError(); - switch (last_key_entry_type) { case kTypeDeletion: case kTypeDeletionWithTimestamp: @@ -1043,11 +1040,6 @@ bool DBIter::FindValueForCurrentKey() { std::to_string(static_cast(last_key_entry_type))); return false; } - if (!s.ok()) { - valid_ = false; - status_ = s; - return false; - } valid_ = true; return true; }