]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_rest_client: clarify comment on set content length
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 27 Feb 2017 16:48:53 +0000 (17:48 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Apr 2018 15:03:11 +0000 (08:03 -0700)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_rest_client.cc

index a129ee53d31c4c2a616f82ab9427a2d032c8530b..92111725e56c64676150128b70e46fb0076725fb 100644 (file)
@@ -685,10 +685,12 @@ int RGWRESTStreamRWRequest::send_request(RGWAccessKey *key, map<string, string>&
     pmanager = mgr;
   }
 
+  // Not sure if this is the place to set a send_size, curl otherwise sets
+  // chunked option and doesn't send content length anymore
   uint64_t send_size = (size_t)(outbl.length() - write_ofs);
 
   if (send_size > 0){
-    ldout(cct, 0) << "ABHI!!! set send len to " << send_size << dendl;
+    ldout(cct,20) << "Setting content length as " << send_size << dendl;
     set_send_length(send_size);
   }