summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Benjamin <mbenjamin@redhat.com>2015-10-27 18:02:59 +0100
committerMatt Benjamin <mbenjamin@redhat.com>2016-02-12 18:05:18 +0100
commit21e6ff37608529b4dde04d593fcef074134ded28 (patch)
tree40c0d360568c9ded6ebce7e2e10e77b94fc37530 /src
parentRGWPutObjRequest: fix get_data() (diff)
downloadceph-21e6ff37608529b4dde04d593fcef074134ded28.tar.xz
ceph-21e6ff37608529b4dde04d593fcef074134ded28.zip
librgw: fix RGWPutObj s->content_length
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Diffstat (limited to '')
-rw-r--r--src/rgw/rgw_file.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h
index 7980201b604..8e42d06fc5d 100644
--- a/src/rgw/rgw_file.h
+++ b/src/rgw/rgw_file.h
@@ -416,6 +416,9 @@ public:
s->info.request_params = "";
s->info.domain = ""; /* XXX ? */
+ /* XXX required in RGWOp::execute() */
+ s->content_length = bl.length();
+
// woo
s->user = user;
@@ -425,7 +428,6 @@ public:
virtual int get_data(buffer::list& _bl) {
/* XXX for now, use sharing semantics */
_bl.claim(bl);
- _bl.hexdump(cout);
return _bl.length();
}