]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: rgw_admin also inits curl
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 2 Mar 2018 09:41:51 +0000 (10:41 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 2 Mar 2018 16:42:00 +0000 (17:42 +0100)
commit112ba0b4dae5972b520aec39fe99275a6dfa899d
tree9e508c898e2e366a86c4c3a5c43f25a8253e70fd
parent55dde3df50a9735b81c6b31f5683ebda1dabd5e2
rgw: rgw_admin also inits curl

since we use http manager which in turn uses curl and uses curl multi
interfaces. While curl is initialized at the first call of curl_easy_init() this
method isn't guaranteed to be safe when multiple threads may call the function
since curl_global_init isn't reentrant. Calling curl_global_init via
rgw::curl::setup_curl which additionally sets up ssl interfaces etc. when
openssl is used as curl's ssl backend. Similarly moving rgw target link to
accomodate this change.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
CMakeLists.txt
src/rgw/CMakeLists.txt
src/rgw/rgw_admin.cc