diff options
author | Yehuda Sadeh <yehuda@redhat.com> | 2019-07-03 00:25:27 +0200 |
---|---|---|
committer | Casey Bodley <cbodley@redhat.com> | 2019-07-29 21:20:50 +0200 |
commit | 864bfd46667300bdcf0652c739dd14e23f7d6a02 (patch) | |
tree | 4d2865dc081a698b854292b428abca5618d7d9cc /src/rgw/services/svc_mdlog.cc | |
parent | rgw: relax bucket meta instance parsing (diff) | |
download | ceph-864bfd46667300bdcf0652c739dd14e23f7d6a02.tar.xz ceph-864bfd46667300bdcf0652c739dd14e23f7d6a02.zip |
rgw: use period object for period history init, explicit constructor
Was passing the period id (string) which triggered implicit construction
of the period object. Instead pass the period object itself and make
constructor explicit to avoid future similar issues.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/services/svc_mdlog.cc')
-rw-r--r-- | src/rgw/services/svc_mdlog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/services/svc_mdlog.cc b/src/rgw/services/svc_mdlog.cc index b0313534505..a8f35fe837e 100644 --- a/src/rgw/services/svc_mdlog.cc +++ b/src/rgw/services/svc_mdlog.cc @@ -43,7 +43,7 @@ int RGWSI_MDLog::do_start() period_puller.reset(new RGWPeriodPuller(svc.zone, svc.sysobj)); period_history.reset(new RGWPeriodHistory(cct, period_puller.get(), - current_period.get_id())); + current_period)); if (svc.zone->need_to_sync()) { // initialize the log period history |