From: cao.leilc Date: Mon, 12 Dec 2022 02:45:59 +0000 (+0800) Subject: rgw : fix add initialization for RGWGC::process() X-Git-Tag: v19.0.0~1052^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e276bfbdbd147b81d2bd7af7a4160862d507f8f;p=ceph-ci.git rgw : fix add initialization for RGWGC::process() Fixes: https://tracker.ceph.com/issues/57323 Signed-off-by: caolei --- diff --git a/src/rgw/driver/rados/rgw_gc.cc b/src/rgw/driver/rados/rgw_gc.cc index bd16bde1bd5..9ba296a13a1 100644 --- a/src/rgw/driver/rados/rgw_gc.cc +++ b/src/rgw/driver/rados/rgw_gc.cc @@ -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;