From 7487a7628c0d8f65d70068ea74b30cbb7ec33abf Mon Sep 17 00:00:00 2001 From: DorianZheng Date: Mon, 8 Oct 2018 14:20:05 -0700 Subject: [PATCH] Fix return status of DBImpl::GetLatestSequenceForKey Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/4467 Differential Revision: D10241418 Pulled By: yiwu-arbug fbshipit-source-id: f6adbe7292b2c934e14971c7432b3eb115c35026 --- db/db_impl.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index 393b2d2e9..70a14d2c5 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -2967,12 +2967,10 @@ Status DBImpl::GetLatestSequenceForKey(SuperVersion* sv, const Slice& key, ROCKS_LOG_ERROR(immutable_db_options_.info_log, "Unexpected status returned from Version::Get: %s\n", s.ToString().c_str()); - - return s; } } - return Status::OK(); + return s; } Status DBImpl::IngestExternalFile( -- GitLab