This commit is contained in:
neal-zhu
2019-06-11 20:30:54 +08:00
parent 8fa7a937ee
commit 177cd08629

View File

@@ -348,7 +348,8 @@ Status Version::Get(const ReadOptions& options, const LookupKey& k,
static bool Match(void* arg, int level, FileMetaData* f) {
State* state = reinterpret_cast<State*>(arg);
if (state->last_file_read != nullptr && state->stats->seek_file == nullptr) {
if (state->last_file_read != nullptr &&
state->stats->seek_file == nullptr) {
// We have had more than one seek for this read. Charge the 1st file.
state->stats->seek_file = state->last_file_read;
state->stats->seek_file_level = state->last_file_level;