]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: warn on the lack of curl_multi_wait() 415/head
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 9 Jul 2013 16:19:16 +0000 (09:19 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 9 Jul 2013 16:19:16 +0000 (09:19 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_main.cc

index c1a67016bc052b878877261cc5072cf5df131e2b..e3c853c19d7f8c30400552a87cc1a403c505f8fd 100644 (file)
@@ -392,6 +392,18 @@ done:
   delete req;
 }
 
+#ifdef HAVE_CURL_MULTI_WAIT
+static void check_curl()
+{
+}
+#else
+static void check_curl()
+{
+  derr << "WARNING: libcurl doesn't support curl_multi_wait()" << dendl;
+  derr << "WARNING: cross zone / region transfer performance may be affected" << dendl;
+}
+#endif
+
 class C_InitTimeout : public Context {
 public:
   C_InitTimeout() {}
@@ -443,6 +455,8 @@ int main(int argc, const char **argv)
     }
   }
 
+  check_curl();
+
   if (g_conf->daemonize) {
     if (g_conf->rgw_socket_path.empty() and g_conf->rgw_port.empty()) {
       cerr << "radosgw: must specify 'rgw socket path' or 'rgw port' to run as a daemon" << std::endl;