Commit 35daf39d authored by Shane Snyder's avatar Shane Snyder
Browse files

apply previous commit bug fix to list_keyvals

parent dfd3479c
......@@ -202,7 +202,7 @@ std::vector<std::pair<ds_bulk_t,ds_bulk_t>> LevelDBDataStore::vlist_keyvals(
/* 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