]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw : fix add initialization for RGWGC::process()
authorcao.leilc <cao.leilc@inspur.com>
Mon, 12 Dec 2022 02:45:59 +0000 (10:45 +0800)
committercao.leilc <cao.leilc@inspur.com>
Tue, 13 Dec 2022 07:23:04 +0000 (15:23 +0800)
Fixes: https://tracker.ceph.com/issues/57323
Signed-off-by: caolei <cao.leilc@inspur.com>
src/rgw/driver/rados/rgw_gc.cc

index bd16bde1bd5dbeac47926845d1a8f16dbeac1504..9ba296a13a1a3f2e8fcb0ac161b7e3793a19c9cc 100644 (file)
@@ -576,7 +576,7 @@ int RGWGC::process(int index, int max_secs, bool expired_only,
 
   string marker;
   string next_marker;
-  bool truncated;
+  bool truncated = false;
   IoCtx *ctx = new IoCtx;
   do {
     int max = 100;