From: Loic Dachary Date: Sun, 19 Feb 2017 09:07:19 +0000 (+0100) Subject: doc: crush_add_bucket auto-allocate on 0 X-Git-Tag: v12.0.1~297^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=987dcca044eafc36a4129a804b3e6384cdf720bf;p=ceph.git doc: crush_add_bucket auto-allocate on 0 It does not auto-allocate when the provided bucketno is -1 because it is a valid bucket number. Signed-off-by: Loic Dachary --- diff --git a/src/crush/builder.h b/src/crush/builder.h index 7bc1e5d008a..66554535cb1 100644 --- a/src/crush/builder.h +++ b/src/crush/builder.h @@ -119,7 +119,7 @@ extern int crush_get_next_bucket_id(struct crush_map *map); /** @ingroup API * * Add __bucket__ into the crush __map__ and assign it the - * __bucketno__ unique identifier. If __bucketno__ is -1, the function + * __bucketno__ unique identifier. If __bucketno__ is 0, the function * will assign the lowest available identifier. The bucket identifier * must be a negative integer. The bucket identifier is returned via * __idout__. @@ -130,7 +130,7 @@ extern int crush_get_next_bucket_id(struct crush_map *map); * to another bucket. * * @param[in] map the crush_map - * @param[in] bucketno the bucket unique identifer or -1 + * @param[in] bucketno the bucket unique identifer or 0 * @param[in] bucket the bucket to add to the __map__ * @param[out] idout a pointer to the bucket identifier *