mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
ctdb-server: Replace ctdb_logging.h with common/logging.h
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
3f314154fe
commit
f50db5cba5
@ -30,9 +30,9 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
static void ctdb_ban_node_event(struct tevent_context *ev,
|
||||
struct tevent_timer *te,
|
||||
|
@ -33,12 +33,12 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/reqid.h"
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
struct ctdb_sticky_record {
|
||||
struct ctdb_context *ctdb;
|
||||
|
@ -32,10 +32,10 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/reqid.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
|
||||
struct ctdb_control_state {
|
||||
|
@ -37,12 +37,12 @@
|
||||
#include "ctdb_version.h"
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/reqid.h"
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
struct ctdb_client_pid_list {
|
||||
struct ctdb_client_pid_list *next, *prev;
|
||||
|
@ -26,13 +26,13 @@
|
||||
|
||||
#include "lib/util/debug.h"
|
||||
|
||||
#include "ctdb_logging.h"
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
void ctdb_set_child_info(TALLOC_CTX *mem_ctx, const char *child_name_fmt, ...)
|
||||
{
|
||||
|
@ -29,10 +29,10 @@
|
||||
#include "lib/util/debug.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
/**
|
||||
* Cancel a transaction on database
|
||||
|
@ -31,9 +31,9 @@
|
||||
#include "lib/util/samba_util.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -30,10 +30,10 @@
|
||||
#include "lib/util/samba_util.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
/*
|
||||
* Non-blocking Locking API
|
||||
|
@ -31,10 +31,10 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
const char *debug_extra = "";
|
||||
|
||||
|
@ -29,7 +29,6 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/system.h"
|
||||
|
||||
|
@ -28,7 +28,8 @@
|
||||
#include "lib/util/samba_util.h" /* get_myname */
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/logging.h"
|
||||
|
||||
/* Linux and FreeBSD define this appropriately - try good old /dev/log
|
||||
* for anything that doesn't... */
|
||||
|
@ -34,12 +34,12 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/reqid.h"
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
#define PERSISTENT_HEALTH_TDB "persistent_health.tdb"
|
||||
|
||||
|
@ -30,10 +30,10 @@
|
||||
#include "lib/util/samba_util.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
struct ctdb_monitor_state {
|
||||
uint32_t monitoring_mode;
|
||||
|
@ -32,10 +32,10 @@
|
||||
#include "lib/util/samba_util.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/reqid.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
struct ctdb_persistent_state {
|
||||
struct ctdb_context *ctdb;
|
||||
|
@ -34,10 +34,10 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
int
|
||||
ctdb_control_getvnnmap(struct ctdb_context *ctdb, uint32_t opcode, TDB_DATA indata, TDB_DATA *outdata)
|
||||
|
@ -35,11 +35,11 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/system.h"
|
||||
#include "common/cmdline.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
|
||||
/* List of SRVID requests that need to be processed */
|
||||
|
@ -30,9 +30,9 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
/*
|
||||
choose the transport we will use
|
||||
|
@ -24,11 +24,11 @@
|
||||
#include "lib/util/debug.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/reqid.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
|
||||
#define SERVER_ID_KEY_SIZE 3
|
||||
|
@ -28,7 +28,8 @@
|
||||
#include "lib/util/samba_util.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/logging.h"
|
||||
|
||||
static void ctdb_statistics_update(struct tevent_context *ev,
|
||||
struct tevent_timer *te,
|
||||
|
@ -33,12 +33,12 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/reqid.h"
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
|
||||
#define TAKEOVER_TIMEOUT() timeval_current_ofs(ctdb->tunable.takeover_timeout,0)
|
||||
|
@ -33,11 +33,11 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/reqid.h"
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
typedef void (*ctdb_traverse_fn_t)(void *private_data, TDB_DATA key, TDB_DATA data);
|
||||
|
||||
|
@ -25,9 +25,9 @@
|
||||
#include "lib/util/debug.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
static const struct {
|
||||
const char *name;
|
||||
|
@ -31,10 +31,10 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
struct ctdb_persistent_write_state {
|
||||
struct ctdb_db_context *ctdb_db;
|
||||
|
@ -29,9 +29,9 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
/*
|
||||
returns the ctdb uptime
|
||||
|
@ -34,11 +34,11 @@
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_client.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
#define TIMELIMIT() timeval_current_ofs(10, 0)
|
||||
|
||||
|
@ -33,12 +33,12 @@
|
||||
#include "lib/util/samba_util.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/reqid.h"
|
||||
#include "common/system.h"
|
||||
#include "common/cmdline.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
static struct {
|
||||
const char *nlist;
|
||||
|
@ -33,11 +33,11 @@
|
||||
#include "lib/util/samba_util.h"
|
||||
|
||||
#include "ctdb_private.h"
|
||||
#include "ctdb_logging.h"
|
||||
|
||||
#include "common/rb_tree.h"
|
||||
#include "common/system.h"
|
||||
#include "common/common.h"
|
||||
#include "common/logging.h"
|
||||
|
||||
|
||||
static void ctdb_event_script_timeout(struct tevent_context *ev,
|
||||
|
Loading…
x
Reference in New Issue
Block a user