read period config from local storage on RGWPeriod::update(), and write
the new config to storage on RGWPeriod::reflect()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
}
}
+ ret = period_config.read(store, realm_id);
+ if (ret < 0 && ret != -ENOENT) {
+ ldout(cct, 0) << "ERROR: failed to read period config: "
+ << cpp_strerror(ret) << dendl;
+ return ret;
+ }
return 0;
}
}
}
}
+
+ int r = period_config.write(store, realm_id);
+ if (r < 0) {
+ ldout(cct, 0) << "ERROR: failed to store period config: "
+ << cpp_strerror(-r) << dendl;
+ return r;
+ }
return 0;
}