From: Yehuda Sadeh Date: Sun, 23 Jun 2013 06:26:55 +0000 (-0700) Subject: rgw: fix broken obj put X-Git-Tag: v0.67-rc1~128^2~62 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f43fa8140dc1c6d7cd0ac7502d30777f0728e89;p=ceph.git rgw: fix broken obj put Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index c8ecb4139760..3ccb083e71be 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -735,6 +735,10 @@ void RGWPutObjProcessor_Atomic::complete_parts() int RGWPutObjProcessor_Atomic::do_complete(string& etag, time_t *mtime, time_t set_mtime, map& attrs) { + if (!data_ofs && !immutable_head()) { + first_chunk.claim(pending_data_bl); + obj_len = (uint64_t)first_chunk.length(); + } if (pending_data_bl.length()) { void *handle; int r = write_data(pending_data_bl, data_ofs, &handle);