From cc3246cf46ba26604e4b3bef1f8fe0c9990bdeb6 Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Wed, 1 Nov 2017 17:49:46 +0200 Subject: [PATCH] rgw: add missing current_history initialization Fixes: http://tracker.ceph.com/issues/21996 Signed-off-by: Orit Wasserman Signed-off-by: Casey Bodley --- src/rgw/rgw_period_history.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_period_history.cc b/src/rgw/rgw_period_history.cc index 895700f6897b..1f0dbee1cd01 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(); } } -- 2.47.3