]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: call update_latest_epoch() on all period updates 14915/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 2 May 2017 16:16:45 +0000 (12:16 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 16 Jun 2017 17:34:48 +0000 (13:34 -0400)
commitd825b9d854864b815890cf9204d7e72e1e1a9ada
treefe011ac9172a4c4cdfe1829ac1ef538b8a36fbf9
parentc1731dd2d3de5a337903004f835045d609a731cf
rgw: call update_latest_epoch() on all period updates

when updating the period, callers use the atomic result of
update_latest_epoch() to determine whether they need to call
RGWPeriod::reflect() and RGWRealm::notify_new_period()

this adds a missing call to RGWPeriod::reflect() to RGWPeriodPuller,
which was previously not safe to do without atomic updates to
latest_epoch

Fixes: http://tracker.ceph.com/issues/19817
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_period_puller.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rest_realm.cc