]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: avoid returning CURL_READFUNC_PAUSE forever
authorChang Liu <liuchang0812@gmail.com>
Tue, 21 Nov 2017 11:48:08 +0000 (19:48 +0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Apr 2018 15:05:39 +0000 (08:05 -0700)
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
src/rgw/rgw_http_client.cc

index d4eadaac03dd02f46086ed3eefbb0c71ea3b5acb..5c84131f9307d86dd4d81471eb8df4965544faeb 100644 (file)
@@ -337,7 +337,7 @@ size_t RGWHTTPClient::send_http_data(void * const ptr,
     return 0;
   }
 
-  bool pause;
+  bool pause = false;
 
   int ret = req_data->client->send_data(ptr, size * nmemb, &pause);
   if (ret < 0) {