From: Orit Wasserman Date: Wed, 1 Nov 2017 15:49:46 +0000 (+0200) Subject: rgw: add missing current_history initialization X-Git-Tag: v10.2.11~104^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b8e35ab34c6adc4380479043e188a19a3e27a252;p=ceph.git rgw: add missing current_history initialization Fixes: http://tracker.ceph.com/issues/21996 Signed-off-by: Orit Wasserman Signed-off-by: Casey Bodley (cherry picked from commit cc3246cf46ba26604e4b3bef1f8fe0c9990bdeb6) --- diff --git a/src/rgw/rgw_period_history.cc b/src/rgw/rgw_period_history.cc index 895700f6897bc..1f0dbee1cd012 100644 --- a/src/rgw/rgw_period_history.cc +++ b/src/rgw/rgw_period_history.cc @@ -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(); } }