]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't update bucket index multiple times in overwrite 14515/head
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 21 Jan 2017 01:05:24 +0000 (17:05 -0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 19 Jun 2017 17:17:16 +0000 (19:17 +0200)
commit5f4c38fa6b2162cb97162089a8a22095a7cde99d
tree502be5e46ca181e20bf3673367eb0226696b2d15
parent96c8161a786783b84a164afef162dd24c46abdc4
rgw: don't update bucket index multiple times in overwrite

Instead of this for overwrites:
 prepare (index),
   write (head) [-EEXIST]
 cancel (index)
 read (head)
 prepare (index)
   write (head)
 complete (index)

We now do:
 prepare (index),
   write (head) [-EEXIST]
   read (head)
   write (head)
 complete (index)

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