remove a sub-condition that is always true (#11746)

Summary:
the value of `done` is always false here, so the sub-condition `!done` will always be true and the check can be removed.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/11746

Reviewed By: anand1976

Differential Revision: D48656845

Pulled By: ajkr

fbshipit-source-id: 523ba3d07b3af7880c8c8ccb20442fd7c0f49417
This commit is contained in:
jsteemann 2023-08-29 18:40:13 -07:00 committed by Facebook GitHub Bot
parent e373685dab
commit c1e6ffc40a
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ bool MemTableListVersion::GetFromList(
assert(*seq != kMaxSequenceNumber || s->IsNotFound());
return true;
}
if (!done && !s->ok() && !s->IsMergeInProgress() && !s->IsNotFound()) {
if (!s->ok() && !s->IsMergeInProgress() && !s->IsNotFound()) {
return false;
}
}