mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
os/DBOjectMap : iter->valid is always false if we do not initialize the iterator with init(), seek_to_first will initialize this iterator
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
This commit is contained in:
parent
a1de1fc20e
commit
440ef3a230
@ -772,7 +772,7 @@ int DBObjectMap::get_keys(const ghobject_t &oid,
|
||||
if (!header)
|
||||
return -ENOENT;
|
||||
ObjectMapIterator iter = get_iterator(oid);
|
||||
for (; iter->valid(); iter->next()) {
|
||||
for (iter->seek_to_first(); iter->valid(); iter->next()) {
|
||||
if (iter->status())
|
||||
return iter->status();
|
||||
keys->insert(iter->key());
|
||||
|
Loading…
Reference in New Issue
Block a user