]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add check for index entry's existing when we add bucket stats during resharding. 36189/head
authorzhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Tue, 16 Jul 2019 09:41:48 +0000 (17:41 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 18 Jul 2020 20:36:21 +0000 (22:36 +0200)
Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
(cherry picked from commit ce42734773203bfd2d620e6974e428e1b5d3f480)

src/cls/rgw/cls_rgw_types.cc

index a94c1134b97a259b2d9726ed1e942aa3c97fa666..b533ec0559e5ca23eceaf860fdcae1aa49063af3 100644 (file)
@@ -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++;