|
@ -59,9 +59,6 @@ bool SomeFileOverlapsRange(const InternalKeyComparator& icmp, |
|
|
|
|
|
|
|
|
class Version { |
|
|
class Version { |
|
|
public: |
|
|
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 { |
|
|
struct GetStats { |
|
|
FileMetaData* seek_file; |
|
|
FileMetaData* seek_file; |
|
|
int seek_file_level; |
|
|
int seek_file_level; |
|
@ -72,6 +69,9 @@ class Version { |
|
|
// REQUIRES: This version has been saved (see VersionSet::SaveTo) |
|
|
// REQUIRES: This version has been saved (see VersionSet::SaveTo) |
|
|
void AddIterators(const ReadOptions&, std::vector<Iterator*>* iters); |
|
|
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, |
|
|
Status Get(const ReadOptions&, const LookupKey& key, std::string* val, |
|
|
GetStats* stats); |
|
|
GetStats* stats); |
|
|
|
|
|
|
|
|