From: Casey Bodley Date: Wed, 2 Sep 2020 16:56:18 +0000 (-0400) Subject: rgw: RGWDeleteObj::execute initializes olh epoch X-Git-Tag: v16.1.0~1220^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=09ae65bc9c43a4ae8f16e1cbdf479b163378d9e4;p=ceph.git rgw: RGWDeleteObj::execute initializes olh epoch the uninitialized value was causing a comparison to fail in cls/rgw and the deletion of an object version wasn't applied correctly Fixes: https://tracker.ceph.com/issues/47240 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 761f4853cf3c..66462de67a68 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -4767,7 +4767,7 @@ void RGWDeleteObj::execute() } if (!ver_restored) { - uint64_t epoch; + uint64_t epoch = 0; /* Swift's versioning mechanism hasn't found any previous version of * the object that could be restored. This means we should proceed