]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add realm epoch to RGWRealm and RGWPeriod
authorCasey Bodley <cbodley@redhat.com>
Mon, 7 Dec 2015 15:00:27 +0000 (10:00 -0500)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:51 +0000 (16:13 -0800)
commitb37739a2be42245b4a72293272bd03ac8f1f15eb
treef604544bc59de938f4d9f6c6b0d924ae3753efdb
parent423719bab79ad087e6e01c32c2d26bf7c479247c
rgw: add realm epoch to RGWRealm and RGWPeriod

RGWRealm::epoch is incremented on each new period, and
RGWPeriod::realm_epoch tracks the realm epoch when it was created

this makes it easy to determine whether a given period comes before or
after another period, which is needed to build a view of the period
history.  it also makes it easy to detect forks in the period history,
where two different periods share the same realm_epoch

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_json_enc.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h