]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: identify racing writes when using copy-if-newer
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 26 Mar 2015 00:35:40 +0000 (17:35 -0700)
committerCasey Bodley <cbodley@redhat.com>
Fri, 10 Jun 2016 13:17:02 +0000 (09:17 -0400)
commita38f157a09097d1eaef64813fc947aac19e3844a
tree7f204d284abd6095d6e924ce0320564027e9e757
parent02f6d8aaa86f4fdb9912763883d079d02589e5be
rgw: identify racing writes when using copy-if-newer

When copying an object from a different zone, and copy-if-newer is
specified, if the final meta write is canceled check whether the
destinatioin that was created is actually newer than our mtime,
otherwise retry.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit fe9c64b75caf3f53ce2dfdea5e39d794528dfc33)
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h