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( ...@@ -166,7 +166,7 @@ std::vector<ds_bulk_t> LevelDBDataStore::vlist_keys(
/* we treat 'start' the way RADOS treats it: excluding it from returned /* we treat 'start' the way RADOS treats it: excluding it from returned
* keys. LevelDB treats start inclusively, so skip over it if we found * keys. LevelDB treats start inclusively, so skip over it if we found
* an exact match */ * 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)) (memcmp(it->key().data(), start.data(), start.size()) == 0))
it->Next(); it->Next();
} else { } 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