]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: when create_bucket use the same num_shards with info.num_shards 15010/head
authorlu.shasha <lu.shasha@eisoo.com>
Tue, 9 May 2017 07:05:03 +0000 (15:05 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Wed, 10 May 2017 02:42:20 +0000 (10:42 +0800)
pr #14388 only fix the num_shards in BucketInfo, "init_bucket_index" function still use local num_shards

Fixes: http://tracker.ceph.com/issues/19745
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
src/rgw/rgw_rados.cc

index 7069fe4cd9874fcb901c0d8bc0c013f29a7a3d6e..eee86eb4f57cb8046dbd54655fb478aa94293909 100644 (file)
@@ -5452,7 +5452,7 @@ int RGWRados::create_bucket(RGWUserInfo& owner, rgw_bucket& bucket,
       info.quota = *pquota_info;
     }
 
-    int r = init_bucket_index(info, bucket_index_max_shards);
+    int r = init_bucket_index(info, info.num_shards);
     if (r < 0) {
       return r;
     }