From: Xiaoxi Chen Date: Fri, 20 Nov 2015 08:00:19 +0000 (+0800) Subject: cls/cls_rbd.cc: no need to skip key == after. X-Git-Tag: v10.0.2~136^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6661%2Fhead;p=ceph.git 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 --- diff --git a/src/cls/rbd/cls_rbd.cc b/src/cls/rbd/cls_rbd.cc index f83353b2c704..ab40c16b7330 100644 --- a/src/cls/rbd/cls_rbd.cc +++ b/src/cls/rbd/cls_rbd.cc @@ -2506,8 +2506,6 @@ int metadata_list(cls_method_context_t hctx, bufferlist *in, bufferlist *out) break; map::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);