]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: expose the version of synced items to the poster
authorGreg Farnum <greg@inktank.com>
Thu, 25 Jul 2013 22:07:39 +0000 (15:07 -0700)
committerGreg Farnum <greg@inktank.com>
Thu, 25 Jul 2013 23:03:59 +0000 (16:03 -0700)
commit063c71f0ff92316620998b3d08932bd53cbd4f28
treedf6553ce0ed30b523bf78c6cdf425c708cea35ce
parent81b62b5c7192f30f8a3b355cc7cc270cb7e6af92
rgw: expose the version of synced items to the poster

To support this, we add an optional out argument to
RGWMetadatManager::put() and fill in the read_version. When the
function returns, that contains whatever the current on-disk version
of the object is (either what already existed or what we just wrote).

Signed-off-by: Greg Farnum <greg@inktank.com>
src/rgw/rgw_bucket.cc
src/rgw/rgw_metadata.cc
src/rgw/rgw_metadata.h
src/rgw/rgw_rest_metadata.cc
src/rgw/rgw_rest_metadata.h