Fixed didIO not being set with no block_cache

Summary:
In `Table::BlockReader()` when there was no block cache `didIO` was not set.

This didn't seem to matter as `didIO` is only used to trigger seek compactions. However, I would like it if someone else could check that is the case.

Test Plan: `make check OPT="-g -O3"`

Reviewers: dhruba, vamsi

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D8133
This commit is contained in:
Kosie van der Merwe 2013-01-23 12:49:10 -08:00
parent 16903c35b0
commit 88b79b24f3

View File

@ -207,6 +207,9 @@ Iterator* Table::BlockReader(void* arg,
if (s.ok()) { if (s.ok()) {
block = new Block(contents); block = new Block(contents);
} }
if (didIO != NULL) {
*didIO = true; // we did some io from storage
}
} }
} }