From: Yehuda Sadeh Date: Thu, 19 Mar 2015 03:49:13 +0000 (-0700) Subject: rgw: don't use rgw_socket_path if frontend is configured X-Git-Tag: v0.94.2~10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4574%2Fhead;p=ceph.git rgw: don't use rgw_socket_path if frontend is configured Fixes: #11160 Backport: hammer, firefly Previously if we wanted to use the tcp fcgi socket, we needed to clear rgw_socket_path. Signed-off-by: Yehuda Sadeh (cherry picked from commit 36d6eea3caa79fcb4e08bdd340ccda2474b9e5ea) --- diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index de8a1bc09ab0..2a247e4191f2 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -279,10 +279,17 @@ void RGWFCGXProcess::run() string socket_port; string socket_host; - conf->get_val("socket_path", g_conf->rgw_socket_path, &socket_path); + conf->get_val("socket_path", "", &socket_path); conf->get_val("socket_port", g_conf->rgw_port, &socket_port); conf->get_val("socket_host", g_conf->rgw_host, &socket_host); + if (socket_path.empty() && socket_port.empty() && socket_host.empty()) { + socket_path = g_conf->rgw_socket_path; + if (socket_path.empty()) { + dout(0) << "ERROR: no socket server point defined, cannot start fcgi frontend" << dendl; + return; + } + } if (!socket_path.empty()) { string path_str = socket_path;