Merge pull request #15010 from shashalu/fix-bucket-create

rgw: when create_bucket use the same num_shards with info.num_shards

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2017-05-11 11:56:02 -04:00 committed by GitHub
commit 84fb0cd505

View 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;
}