1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-common: Drop ctdb prefix from utility functions independent of ctdb

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2014-06-10 16:48:03 +10:00 committed by Martin Schwenke
parent 5b580e5d65
commit 3a9d375328
4 changed files with 7 additions and 7 deletions

View File

@ -92,7 +92,7 @@ pid_t ctdb_fork_no_free_ringbuffer(struct ctdb_context *ctdb)
/* The child does not need to be realtime */
if (ctdb->do_setsched) {
ctdb_restore_scheduler();
reset_scheduler();
}
ctdb->can_send_controls = false;

View File

@ -329,7 +329,7 @@ struct ctdb_rec_data *ctdb_marshall_loop_next(struct ctdb_marshall_buffer *m, st
/*
if possible, make this task real time
*/
void ctdb_set_scheduler(void)
void set_scheduler(void)
{
#ifdef _AIX_
#if HAVE_THREAD_SETSCHED
@ -366,9 +366,9 @@ void ctdb_set_scheduler(void)
}
/*
restore previous scheduler parameters
reset scheduler from real-time to normal scheduling
*/
void ctdb_restore_scheduler(void)
void reset_scheduler(void)
{
#ifdef _AIX_
#if HAVE_THREAD_SETSCHED

View File

@ -1087,8 +1087,8 @@ void ctdb_call_resend_all(struct ctdb_context *ctdb);
void ctdb_node_dead(struct ctdb_node *node);
void ctdb_node_connected(struct ctdb_node *node);
bool ctdb_blocking_freeze(struct ctdb_context *ctdb);
void ctdb_set_scheduler(void);
void ctdb_restore_scheduler(void);
void set_scheduler(void);
void reset_scheduler(void);
struct tevent_signal *ctdb_init_sigchld(struct ctdb_context *ctdb);
void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid);

View File

@ -1185,7 +1185,7 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork, bool use_syslog)
if (ctdb->do_setsched) {
/* try to set us up as realtime */
ctdb_set_scheduler();
set_scheduler();
}
/* ensure the socket is deleted on exit of the daemon */