]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: provide better version bounds for cls_current_version and ENOENT replies
authorGreg Farnum <greg@inktank.com>
Tue, 3 Sep 2013 17:54:23 +0000 (10:54 -0700)
committerGreg Farnum <greg@inktank.com>
Tue, 3 Sep 2013 17:54:23 +0000 (10:54 -0700)
commit087800ee49a443098e7deec90cb0ee37aed0ff26
treee871bd1d16e8f95c34268f970775389073e3c5b2
parentd71cd549504832d121824f1508498023bcacbbfd
osd: provide better version bounds for cls_current_version and ENOENT replies

Following the changes to when we set or increase the user_version, we
want to continue to return the best lower bound we can on the version
of any newly-created object. For ENOENT replies that means returning
info.last_user_version instead of the (potentially-zero) ctx->user_at_version.

Similarly, for cls_current_version we want to return the last version on
the PG rather than the last update to the object in order to provide
sensible version ordering across object deletes and creates.

Update the versions doc so it continues to be precise.

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
doc/dev/versions.rst
src/objclass/class_api.cc
src/osd/ReplicatedPG.cc