summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Costan <pwnall@chromium.org>2022-01-09 07:31:01 +0000
committerVictor Costan <pwnall@chromium.org>2022-01-09 07:31:01 +0000
commit7a2f90460afcd601e12a1ede3f84c518de091a73 (patch)
treee9277060393254f66faafd0ee778b9e82ef2e3e1
parent4db0eaccf1eb58380b81cfc6a147948df2162694 (diff)
parent54340b4a1020737e17ae4efacc31afeb53022be9 (diff)
downloadleveldb-7a2f90460afcd601e12a1ede3f84c518de091a73.tar.gz
Merge pull request #928 from ehds:fix-comment
PiperOrigin-RevId: 420541137
-rw-r--r--db/version_set.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/version_set.h b/db/version_set.h
index 69f3d70..ea0c925 100644
--- a/db/version_set.h
+++ b/db/version_set.h
@@ -59,9 +59,6 @@ bool SomeFileOverlapsRange(const InternalKeyComparator& icmp,
class Version {
public:
- // Lookup the value for key. If found, store it in *val and
- // return OK. Else return a non-OK status. Fills *stats.
- // REQUIRES: lock is not held
struct GetStats {
FileMetaData* seek_file;
int seek_file_level;
@@ -72,6 +69,9 @@ class Version {
// REQUIRES: This version has been saved (see VersionSet::SaveTo)
void AddIterators(const ReadOptions&, std::vector<Iterator*>* iters);
+ // Lookup the value for key. If found, store it in *val and
+ // return OK. Else return a non-OK status. Fills *stats.
+ // REQUIRES: lock is not held
Status Get(const ReadOptions&, const LookupKey& key, std::string* val,
GetStats* stats);