]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: fix RGWPutObj s->content_length
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 27 Oct 2015 17:02:59 +0000 (13:02 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:05:18 +0000 (12:05 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index 7980201b6040e9086b66a6e99b7fcfce16c3a562..8e42d06fc5d300b1727f78f90e1d3ff512d20220 100644 (file)
@@ -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();
   }