]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume-client: allow atomic updates for RADOS objects
authorRishabh Dave <rishabhddave@gmail.com>
Thu, 7 Jun 2018 12:26:44 +0000 (12:26 +0000)
committerRishabh Dave <ridave@redhat.com>
Thu, 28 Jun 2018 15:24:57 +0000 (15:24 +0000)
commitca7253cff6cdac590bb14d0d297c02452bf75bf6
tree90d690cd8fca2c89fccc051624fb1cc5a85b577c
parentea870c249f2a39399687a09a47bcaa4a4402c47d
ceph-volume-client: allow atomic updates for RADOS objects

put_object_versioned() takes the version of the object and verifies if
the version of the object is the expected one before updating the data
in the object. This verification of version before actually writing
makes put_objcet_version() atomic.

Rest of the changes include adding get_object_and_version() so that
current version of the object can be obtained and modification of
get_object() and put_object() to use get_object_and_version() and
put_object_versioned() respectively.

Fixes: http://tracker.ceph.com/issues/24173
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/ceph_volume_client.py
src/pybind/rados/rados.pyx