mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
cls/cls_rbd.cc: no need to skip key == after.
We already skip the pair where key == after in both LevelDBWholeSpaceIteratorImpl::upper_bound and RocksDBWholeSpaceIteratorImpl::upper_bound. Fixes: #13922 Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
This commit is contained in:
parent
b75d1074f6
commit
bff706f48b
@ -2506,8 +2506,6 @@ int metadata_list(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
|
||||
break;
|
||||
|
||||
map<string, bufferlist>::iterator it = raw_data.begin();
|
||||
if (metadata_name_from_key(it->first) == last_read)
|
||||
++it;
|
||||
for (; it != raw_data.end(); ++it)
|
||||
data[metadata_name_from_key(it->first)].swap(it->second);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user