]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't fail if lost race when setting acls 11471/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 30 Sep 2016 23:13:00 +0000 (16:13 -0700)
committerLoic Dachary <ldachary@redhat.com>
Thu, 13 Oct 2016 09:41:56 +0000 (11:41 +0200)
commit40689d1acab4da963d05540eb837fd12a4411269
tree0448cfa2bd509d03aaf94a24bbfcc58830f72be1
parent9d1f756dfa1775338c2fa1cf6bfafd45b842b75f
rgw: don't fail if lost race when setting acls

Fixes: http://tracker.ceph.com/issues/16930
When concurrently setting acls on object/bucket, we could lose in a race.
Instead of retry, just return success (same effect as if we won and then
other writer overwrote us).

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