]> git.apps.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>
Tue, 23 Sep 2014 20:26:33 +0000 (13:26 -0700)
commitd73dbc3a39117eddaaabb2c25d9238cd7c51711b
treea02a17b0729cc2b4dd4462b62a501bf27a04f269
parentebb599545d70e4289e385f88b4f0594b4f23f3b7
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>
(cherry picked from commit 9181114d6f6062c55ee4b351fc3495345e545c36)
src/rgw/rgw_rados.cc