mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +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:
parent
5b580e5d65
commit
3a9d375328
@ -92,7 +92,7 @@ pid_t ctdb_fork_no_free_ringbuffer(struct ctdb_context *ctdb)
|
|||||||
|
|
||||||
/* The child does not need to be realtime */
|
/* The child does not need to be realtime */
|
||||||
if (ctdb->do_setsched) {
|
if (ctdb->do_setsched) {
|
||||||
ctdb_restore_scheduler();
|
reset_scheduler();
|
||||||
}
|
}
|
||||||
ctdb->can_send_controls = false;
|
ctdb->can_send_controls = false;
|
||||||
|
|
||||||
|
@ -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
|
if possible, make this task real time
|
||||||
*/
|
*/
|
||||||
void ctdb_set_scheduler(void)
|
void set_scheduler(void)
|
||||||
{
|
{
|
||||||
#ifdef _AIX_
|
#ifdef _AIX_
|
||||||
#if HAVE_THREAD_SETSCHED
|
#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_
|
#ifdef _AIX_
|
||||||
#if HAVE_THREAD_SETSCHED
|
#if HAVE_THREAD_SETSCHED
|
||||||
|
@ -1087,8 +1087,8 @@ void ctdb_call_resend_all(struct ctdb_context *ctdb);
|
|||||||
void ctdb_node_dead(struct ctdb_node *node);
|
void ctdb_node_dead(struct ctdb_node *node);
|
||||||
void ctdb_node_connected(struct ctdb_node *node);
|
void ctdb_node_connected(struct ctdb_node *node);
|
||||||
bool ctdb_blocking_freeze(struct ctdb_context *ctdb);
|
bool ctdb_blocking_freeze(struct ctdb_context *ctdb);
|
||||||
void ctdb_set_scheduler(void);
|
void set_scheduler(void);
|
||||||
void ctdb_restore_scheduler(void);
|
void reset_scheduler(void);
|
||||||
|
|
||||||
struct tevent_signal *ctdb_init_sigchld(struct ctdb_context *ctdb);
|
struct tevent_signal *ctdb_init_sigchld(struct ctdb_context *ctdb);
|
||||||
void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid);
|
void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid);
|
||||||
|
@ -1185,7 +1185,7 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork, bool use_syslog)
|
|||||||
|
|
||||||
if (ctdb->do_setsched) {
|
if (ctdb->do_setsched) {
|
||||||
/* try to set us up as realtime */
|
/* try to set us up as realtime */
|
||||||
ctdb_set_scheduler();
|
set_scheduler();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ensure the socket is deleted on exit of the daemon */
|
/* ensure the socket is deleted on exit of the daemon */
|
||||||
|
Loading…
Reference in New Issue
Block a user