ctdb-common: Process the whole config file even if an error occurs
authorMartin Schwenke <martin@meltin.net>
Thu, 30 Aug 2018 23:35:14 +0000 (09:35 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 3 Sep 2018 08:52:11 +0000 (10:52 +0200)
commit4f1727fe0bf2b0962a5d131d60a416b8f459ad94
treec922531433cf582b8e25055c0446c54a2faf59ac
parent920ed66ba7e874ca23d72fff9342fbd64a1e329f
ctdb-common: Process the whole config file even if an error occurs

At the moment multiple errors will be encountered one at a time, on
each load or validate.  Instead, allow all configuration errors to
printed in a single pass.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/conf.c
ctdb/tests/cunit/conf_test_001.sh
ctdb/tests/cunit/config_test_005.sh