From: zhang Shaowen Date: Tue, 16 Jul 2019 09:41:48 +0000 (+0800) Subject: rgw: add check for index entry's existing when we add bucket stats during resharding. X-Git-Tag: v16.1.0~2431^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ce42734773203bfd2d620e6974e428e1b5d3f480;p=ceph.git rgw: add check for index entry's existing when we add bucket stats during resharding. Signed-off-by: zhang Shaowen --- diff --git a/src/cls/rgw/cls_rgw_types.cc b/src/cls/rgw/cls_rgw_types.cc index 892ef5617e0..a16873151a5 100644 --- a/src/cls/rgw/cls_rgw_types.cc +++ b/src/cls/rgw/cls_rgw_types.cc @@ -261,6 +261,7 @@ bool rgw_cls_bi_entry::get_info(cls_rgw_obj_key *key, { rgw_bucket_dir_entry entry; decode(entry, iter); + account = (account && entry.exists); *key = entry.key; *category = entry.meta.category; accounted_stats->num_entries++;