]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add missing current_history initialization 20292/head
authorOrit Wasserman <owasserm@redhat.com>
Wed, 1 Nov 2017 15:49:46 +0000 (17:49 +0200)
committerNathan Cutler <ncutler@suse.com>
Sun, 4 Feb 2018 03:34:57 +0000 (04:34 +0100)
Fixes: http://tracker.ceph.com/issues/21996
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit cc3246cf46ba26604e4b3bef1f8fe0c9990bdeb6)

src/rgw/rgw_period_history.cc

index 895700f6897bc17244558d8f3035e00ca74bb3f9..1f0dbee1cd01252200eff855af5dab67b1f619b5 100644 (file)
@@ -137,6 +137,8 @@ RGWPeriodHistory::Impl::Impl(CephContext* cct, Puller* puller,
 
     // get a cursor to the current period
     current_cursor = make_cursor(current_history, current_period.get_realm_epoch());
+  } else {
+    current_history = histories.end();
   }
 }