]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't update bucket index multiple times in overwrite 13035/head
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 21 Jan 2017 01:05:24 +0000 (17:05 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 6 Feb 2017 21:14:21 +0000 (13:14 -0800)
commit7f4818f9611ea8f7b3fac7df8c5c314964f657a2
tree0a825b08426d28c6f624ec795a96bf18a88c632a
parent6f27f6089238d2a20e7a0f13066eddfc31192dc8
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>
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h