summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdbd.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-07-13 08:47:02 +1000
committerAndrew Tridgell <tridge@samba.org>2007-07-13 08:47:02 +1000
commitfc73bc5c242b721c9f161dcf21c24691c729e167 (patch)
tree24feb033374fb2a7f590bfcc98d4f0fb59a62258 /ctdb/server/ctdbd.c
parentf97f2946d25f08b552466f42412a960bd13769d7 (diff)
downloadsamba-fc73bc5c242b721c9f161dcf21c24691c729e167.tar.gz
samba-fc73bc5c242b721c9f161dcf21c24691c729e167.tar.xz
samba-fc73bc5c242b721c9f161dcf21c24691c729e167.zip
added --nosetsched option to ctdbd
(This used to be ctdb commit 4cbbb88c1735c7d112e751e22da1c1c69e09bf4a)
Diffstat (limited to 'ctdb/server/ctdbd.c')
-rw-r--r--ctdb/server/ctdbd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c
index 2c4a23b673..91e4d8f70b 100644
--- a/ctdb/server/ctdbd.c
+++ b/ctdb/server/ctdbd.c
@@ -47,6 +47,7 @@ static struct {
const char *logfile;
const char *recovery_lock_file;
const char *db_dir;
+ int no_setsched;
} options = {
.nlist = ETCDIR "/ctdb/nodes",
.transport = "tcp",
@@ -108,6 +109,7 @@ int main(int argc, const char *argv[])
{ "transport", 0, POPT_ARG_STRING, &options.transport, 0, "protocol transport", NULL },
{ "dbdir", 0, POPT_ARG_STRING, &options.db_dir, 0, "directory for the tdb files", NULL },
{ "reclock", 0, POPT_ARG_STRING, &options.recovery_lock_file, 0, "location of recovery lock file", "filename" },
+ { "nosetsched", 0, POPT_ARG_NONE, &options.no_setsched, 0, "disable setscheduler SCHED_FIFO call", NULL },
POPT_TABLEEND
};
int opt, ret;
@@ -224,6 +226,8 @@ int main(int argc, const char *argv[])
talloc_free(name);
}
+ ctdb->do_setsched = !!options.no_setsched;
+
/* start the protocol running (as a child) */
return ctdb_start_daemon(ctdb, interactive?False:True);
}