]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: RGWDeleteObj::execute initializes olh epoch 36951/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 2 Sep 2020 16:56:18 +0000 (12:56 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 2 Sep 2020 17:13:42 +0000 (13:13 -0400)
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 <cbodley@redhat.com>
src/rgw/rgw_op.cc

index 761f4853cf3caee4b31b77f4cb60b0d49de86841..66462de67a68de671d42a41770de17e0b6185d04 100644 (file)
@@ -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