</variablelist>
</refsect1>
- <refsect1>
- <title>DEBUGGING OPTIONS</title>
-
- <variablelist>
-
- <varlistentry>
- <term>--torture</term>
- <listitem>
- <para>
- This option is only used for development and testing of
- CTDB. It adds artificial errors and failures to the
- common codepaths in ctdbd to verify that ctdbd can recover
- correctly from failures.
- </para>
- <para>
- <emphasis>Do not use this option</emphasis> unless you are
- developing and testing new functionality in CTDB.
- </para>
- </listitem>
- </varlistentry>
-
- <varlistentry>
- <term>--valgrinding</term>
- <listitem>
- <para>
- This is a debugging option. This option is only used when
- debugging ctdbd. This enables additional debugging
- capabilities and implies --nosetsched.
- </para>
- </listitem>
- </varlistentry>
-
- </variablelist>
- </refsect1>
-
<refsect1>
<title>SEE ALSO</title>
<para>
const char *db_dir;
const char *db_dir_persistent;
const char *db_dir_state;
- int valgrinding;
int nosetsched;
int start_as_disabled;
int start_as_stopped;
int no_recmaster;
int script_log_level;
int max_persistent_check_errors;
- int torture;
} options = {
.debuglevel = "NOTICE",
.transport = "tcp",
{ "dbdir-persistent", 0, POPT_ARG_STRING, &options.db_dir_persistent, 0, "directory for persistent tdb files", NULL },
{ "dbdir-state", 0, POPT_ARG_STRING, &options.db_dir_state, 0, "directory for internal state tdb files", NULL },
{ "reclock", 0, POPT_ARG_STRING, &options.recovery_lock, 0, "recovery lock", "lock" },
- { "valgrinding", 0, POPT_ARG_NONE, &options.valgrinding, 0, "disable setscheduler SCHED_FIFO call, use mmap for tdbs", NULL },
{ "nosetsched", 0, POPT_ARG_NONE, &options.nosetsched, 0, "disable setscheduler SCHED_FIFO call, use mmap for tdbs", NULL },
{ "start-as-disabled", 0, POPT_ARG_NONE, &options.start_as_disabled, 0, "Node starts in disabled state", NULL },
{ "start-as-stopped", 0, POPT_ARG_NONE, &options.start_as_stopped, 0, "Node starts in stopped state", NULL },
{ "max-persistent-check-errors", 0, POPT_ARG_INT,
&options.max_persistent_check_errors, 0,
"max allowed persistent check errors (default 0)", NULL },
- { "torture", 0, POPT_ARG_NONE, &options.torture, 0, "enable nastiness in library", NULL },
POPT_TABLEEND
};
int opt, ret;
exit(1);
}
- if (options.torture == 1) {
- ctdb_set_flags(ctdb, CTDB_FLAG_TORTURE);
- }
-
/* Log to stderr when running as interactive */
if (interactive) {
options.logging = "file:";
exit(1);
}
- ctdb->valgrinding = (options.valgrinding == 1);
ctdb->do_setsched = (options.nosetsched != 1);
- if (ctdb->valgrinding) {
- ctdb->do_setsched = false;
- }
ctdb->do_checkpublicip = true;