]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crush: disable modification API when choose_args is not empty
authorLoic Dachary <ldachary@redhat.com>
Sun, 16 Apr 2017 13:00:03 +0000 (15:00 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 18 Apr 2017 07:45:07 +0000 (09:45 +0200)
commitfa52dfaff272421cd23d59a5cbafc2c1f2355179
treed2ab205277a1b819a05fd270fc6e125f4b7c420b
parentdbe36e08be00c6519a8c89718dd47b0219c20516
crush: disable modification API when choose_args is not empty

Adding, removing or move items / buckets via the CrushWrapper API when
choose_args is not empty is unlikely to produce the desired outcome. The
caller should instead add, remove or move items / buckets in a
decompiled crushmap, update the associated choose_arg and upload the new
crushmap.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/crush/CrushWrapper.cc
src/test/crush/CrushWrapper.cc