summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-01-16 22:03:01 +1100
committerAndrew Tridgell <tridge@samba.org>2008-01-16 22:03:01 +1100
commitb62b7fcde84c503e78e65bd4ecf3abc4781af2ec (patch)
treedc9943459a8de7a8951099ffd1eb27b666ffd8a4 /ctdb/include
parent9f5ce343aaf817568cfe1a3b53bc6fae1e794b0d (diff)
added syslog support, and use a pipe to catch logging from child processes to the ctdbd logging functions
(This used to be ctdb commit 1306b04cd01e996fd1aa1159a9521f2ff7b06165)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb.h2
-rw-r--r--ctdb/include/ctdb_private.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h
index f8d0db3d17..f734a52189 100644
--- a/ctdb/include/ctdb.h
+++ b/ctdb/include/ctdb.h
@@ -407,7 +407,7 @@ uint32_t *ctdb_get_connected_nodes(struct ctdb_context *ctdb,
int ctdb_statistics_reset(struct ctdb_context *ctdb, uint32_t destnode);
-int ctdb_set_logfile(struct ctdb_context *ctdb, const char *logfile);
+int ctdb_set_logfile(struct ctdb_context *ctdb, const char *logfile, bool use_syslog);
typedef int (*ctdb_traverse_func)(struct ctdb_context *, TDB_DATA, TDB_DATA, void *);
int ctdb_traverse(struct ctdb_db_context *ctdb_db, ctdb_traverse_func fn, void *private_data);
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 99d9d99b18..a7f17e6ac4 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -369,6 +369,7 @@ struct ctdb_context {
bool done_startup;
const char *node_ip;
struct ctdb_monitor_state *monitor;
+ struct ctdb_log_state *log;
};
struct ctdb_db_context {
@@ -1213,5 +1214,6 @@ int32_t ctdb_control_delete_record(struct ctdb_context *ctdb, TDB_DATA indata);
void ctdb_block_signal(int signum);
void ctdb_unblock_signal(int signum);
int32_t ctdb_monitoring_mode(struct ctdb_context *ctdb);
+int ctdb_set_child_logging(struct ctdb_context *ctdb);
#endif