if some history period not exist in local, it will pull
from master and update the old info to zonegroup.
fixes: http://tracker.ceph.com/issues/22844
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
return r;
}
// reflect period objects if this is the latest version
- r = period.reflect();
- if (r < 0) {
- return r;
+ if (store->realm.get_current_period() == period_id) {
+ r = period.reflect();
+ if (r < 0) {
+ return r;
+ }
}
ldout(store->ctx(), 14) << "period " << period_id
<< " pulled and written to local storage" << dendl;