]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: initialize curl and http client for multisite 24908/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 3 Oct 2018 15:38:07 +0000 (11:38 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 3 Nov 2018 14:15:54 +0000 (15:15 +0100)
Fixes: http://tracker.ceph.com/issues/36302
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 1d44ba04513e06978fa1e3115ebb86292d625df4)

src/rgw/librgw.cc

index 65b275963bc93bc791e2caa2a0cd606b7f8977a1..68b1ce6f87bd0718443b6c5fc60fad6c8311da8a 100644 (file)
@@ -49,6 +49,8 @@
 #include "rgw_auth_s3.h"
 #include "rgw_lib.h"
 #include "rgw_lib_frontend.h"
+#include "rgw_http_client.h"
+#include "rgw_http_client_curl.h"
 
 #include <errno.h>
 #include <thread>
@@ -488,6 +490,8 @@ namespace rgw {
     rgw_tools_init(g_ceph_context);
 
     rgw_init_resolver();
+    rgw::curl::setup_curl(boost::none);
+    rgw_http_client_init(g_ceph_context);
 
     store = RGWStoreManager::get_storage(g_ceph_context,
                                         g_conf->rgw_enable_gc_threads,
@@ -597,6 +601,8 @@ namespace rgw {
 
     rgw_tools_cleanup();
     rgw_shutdown_resolver();
+    rgw_http_client_cleanup();
+    rgw::curl::cleanup_curl();
 
     rgw_perf_stop(g_ceph_context);