]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: update choose_args when items are added/removed
authorLoic Dachary <ldachary@redhat.com>
Fri, 26 May 2017 13:38:24 +0000 (16:38 +0300)
committerLoic Dachary <ldachary@redhat.com>
Wed, 31 May 2017 07:30:46 +0000 (10:30 +0300)
commitb02ad2326de9823674ec01f11ed5d9a27cd40f89
treecb84b994f181445bb90509380a7bc20692acaad1
parentcd86ef1292669edebc0565ee608dd49e01c7ae84
crush: update choose_args when items are added/removed

When items are added:

- the value in the weight set is set to the target weight. It is assumed
  that weight set are updated on a regular basis and will eventually be
  set to a value that prevents excessive over/under filling.

- the value in the id list is set to the item id.

When items are removed, their weight / ids in all choose_args are
removed.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/crush/CrushWrapper.cc
src/test/crush/CMakeLists.txt
src/test/crush/crush-choose-args-expected-one-more.txt [new file with mode: 0644]
src/test/crush/crush-choose-args.sh [new file with mode: 0755]