From: Yehuda Sadeh Date: Fri, 28 Mar 2014 21:05:00 +0000 (-0700) Subject: rgw: move max_chunk_size initialization X-Git-Tag: v0.79~65^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1560%2Fhead;p=ceph.git rgw: move max_chunk_size initialization RGWRados::initialize() is not called when doing RGWRados::get_raw_storage_provider(). This was the culprit for issue Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 55f83cf59825..7cd6b5479a74 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1336,6 +1336,8 @@ int RGWRados::init_rados() { int ret; + max_chunk_size = cct->_conf->rgw_max_chunk_size; + rados = new Rados(); if (!rados) return -ENOMEM; @@ -1450,8 +1452,6 @@ int RGWRados::initialize() { int ret; - max_chunk_size = cct->_conf->rgw_max_chunk_size; - ret = init_rados(); if (ret < 0) return ret;