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: v14.2.11~47^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e46567d59a617effff7e32f8f48ad3279b16af32;p=ceph.git rgw: add check for index entry's existing when we add bucket stats during resharding. Signed-off-by: zhang Shaowen (cherry picked from commit ce42734773203bfd2d620e6974e428e1b5d3f480) --- diff --git a/src/cls/rgw/cls_rgw_types.cc b/src/cls/rgw/cls_rgw_types.cc index a94c1134b97a2..b533ec0559e5c 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++;