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:
Xiaoxi Chen 2015-11-20 16:00:19 +08:00
parent b75d1074f6
commit bff706f48b

View File

@ -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);