]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: crush_add_bucket auto-allocate on 0
authorLoic Dachary <ldachary@redhat.com>
Sun, 19 Feb 2017 09:07:19 +0000 (10:07 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sun, 19 Feb 2017 09:07:19 +0000 (10:07 +0100)
It does not auto-allocate when the provided bucketno is -1 because it is
a valid bucket number.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/crush/builder.h

index 7bc1e5d008a807f8350ecf24fa2ceb514a4ea36f..66554535cb1265a61ec6bc2b93cd8f016eb8a5a8 100644 (file)
@@ -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
  *