]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: move max_chunk_size initialization 1560/head
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 28 Mar 2014 21:05:00 +0000 (14:05 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 28 Mar 2014 21:05:00 +0000 (14:05 -0700)
RGWRados::initialize() is not called when doing
RGWRados::get_raw_storage_provider(). This was the culprit for issue

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rados.cc

index 55f83cf59825aa00585a8f5f82d7db01955943bf..7cd6b5479a74b6f116991744794235feb2df62a6 100644 (file)
@@ -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;