]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: check for invalid names in loc[] 901/head
authorLoic Dachary <loic@dachary.org>
Thu, 5 Dec 2013 18:41:50 +0000 (19:41 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 6 Dec 2013 08:43:47 +0000 (09:43 +0100)
commitaedbc99ffc13f8a8acd170a62bef045dcea26d00
tree4a9203703b24f52c12252e49b6d49967138735b4
parent39ddd213dabf08282bbb78555ba6bc2885221cec
crush: check for invalid names in loc[]

Add the is_valid_crush_loc helper to test for invalid crush names in
insert_item and update_item, before performing any side
effect. Implement the associated unit tests.

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