poptContext pc;
struct tevent_context *ev;
const char *ctdb_base;
+ const char *t;
/* Environment variable overrides default */
ctdbd_pidfile = getenv("CTDB_PIDFILE");
ctdb->do_checkpublicip = (options.no_publicipcheck == 0);
+ t = getenv("CTDB_TEST_MODE");
+ if (t != NULL) {
+ ctdb->do_setsched = false;
+ ctdb->do_checkpublicip = false;
+ fast_start = true;
+ }
+
if (options.max_persistent_check_errors < 0) {
ctdb->max_persistent_check_errors = 0xFFFFFFFFFFFFFFFFLL;
} else {
$CTDB determines how to invoke the ctdb client. If not already set
and if $VALGRIND is set, this is set to "$VALGRIND ctdb". If this is
not already set but $VALGRIND is not set, this is simply set to "ctdb"
+
+Test and debugging variable options
+-----------------------------------
+
+ CTDB_TEST_MODE
+
+ Set this environment variable to enable test mode.
+
+ When testing with multiple local daemons on a single
+ machine this does 3 things:
+
+ * Disables checks related to public IP addresses
+
+ * Speeds up the initial recovery during startup at the
+ expense of some consistency checking
+
+ * Disables real-time scheduling
fi
}
+export CTDB_TEST_MODE="yes"
+
# Following 2 lines may be modified by installation script
export CTDB_TESTS_ARE_INSTALLED=false
export CTDB_TEST_DIR=$(dirname "$0")