Commit dfd3479c authored by Shane Snyder's avatar Shane Snyder
Browse files

leveldb list_keys bug fix

parent 04cbcbdd
......@@ -166,7 +166,7 @@ std::vector<ds_bulk_t> LevelDBDataStore::vlist_keys(
/* we treat 'start' the way RADOS treats it: excluding it from returned
* keys. LevelDB treats start inclusively, so skip over it if we found
* an exact match */
if ( start.size() == it->key().size() &&
if ( it->Valid() && (start.size() == it->key().size()) &&
(memcmp(it->key().data(), start.data(), start.size()) == 0))
it->Next();
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment