]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: clear bufferlist if write_data() successful
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 22 Aug 2014 04:53:38 +0000 (21:53 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 27 Aug 2014 17:29:41 +0000 (10:29 -0700)
commit9181114d6f6062c55ee4b351fc3495345e545c36
tree47584715f9ac60aef4858b78157b1efb4a0f2742
parent00c677b4b69f2a37ebeb663a1918d9ea1d974a59
rgw: clear bufferlist if write_data() successful

Fixes: #9201
Backport: firefly

We sometimes need to call RGWPutObjProcessor::handle_data() again,
so that we send the pending data. However, we failed to clear the buffer
that was already sent, thus it was resent. This triggers when using non
default pool alignments.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc