]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: insert_item returns on error if bucket name is invalid
authorLoic Dachary <loic@dachary.org>
Thu, 5 Dec 2013 08:54:37 +0000 (09:54 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 5 Dec 2013 17:06:55 +0000 (18:06 +0100)
commit8af75968ac49825700c3d2fb31bf14c5a52ce8b5
treed83ebc0cc5d0ade17fb5834ff872dc00f8c2ae13
parent0dd7d2985af95716423ebebb417866f83c76b508
crush: insert_item returns on error if bucket name is invalid

A bucket name may be created as a side effect of insert_item. All names
in the loc argument are checked for validity at the beginning of the
method and an error is returned immediately if one is found. This allows
to not check for errors when setting the name of an item later on.

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