diff options
author | ehds <ehds@qq.com> | 2021-08-08 22:24:19 +0800 |
---|---|---|
committer | ehds <ehds@qq.com> | 2021-08-08 22:24:37 +0800 |
commit | 54340b4a1020737e17ae4efacc31afeb53022be9 (patch) | |
tree | a125ae109d2be7b655cbee48bdfe2eef31c1a033 | |
parent | 5d94ad4d95c09d3ac203ddaf9922e55e730706a8 (diff) | |
download | leveldb-54340b4a1020737e17ae4efacc31afeb53022be9.tar.gz |
Fix comments position
-rw-r--r-- | db/version_set.h | 6 |
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); |