]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: advance ptr when sending data
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 28 Jun 2013 02:48:27 +0000 (19:48 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 28 Jun 2013 04:13:08 +0000 (21:13 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rest_client.cc

index f7479effa765bf2b2780114cdbc698af60c21cad..3e712e7e023e6ac803e0a0754c6a1cc2db2dea2d 100644 (file)
@@ -477,6 +477,7 @@ int RGWRESTStreamWriteRequest::send_data(void *ptr, size_t len)
 
     memcpy(ptr, bl.c_str(), send_len);
 
+    ptr = (char *)ptr + send_len;
     len -= send_len;
     sent += send_len;