From 09ae65bc9c43a4ae8f16e1cbdf479b163378d9e4 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 2 Sep 2020 12:56:18 -0400 Subject: [PATCH] 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 --- src/rgw/rgw_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 761f4853cf3ca..66462de67a68d 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 -- 2.39.5