1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/ctdb/server
Martin Schwenke b4589b954e ctdb-logging: Update to use Samba style debug.h/debug.c
Samba's debug subsystem has changed a lot, so CTDB's logging needs
to be rewritten to be compatible.

The new debug.h/debug.c can't just be pulled in because it has some
extra dependencies into Samba's lib/util.  For now, to support the
smallest possible patch, implement a minimal subset of Samba's
debug.[ch] that just supports the DEBUG_CALLBACK logtype.

Define a callback for each logging method.

Check later to see if debug_extra (or similar) can somehow be
implemented using debug classes.

The timestamp on CTDB CLI tool and test program DEBUG() output goes
away, so update the unit test code to cope.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
2014-10-06 12:34:33 +02:00
..
ctdb_banning.c ctdb-recoverd: Set recovery mode before freezing databases 2014-07-07 13:29:49 +02:00
ctdb_call.c ctdb-call: Drop all deferred requests from older generation 2014-09-05 09:30:50 +02:00
ctdb_control.c ctdb-logging: Change LogLevel to DEBUGLEVEL 2014-10-06 12:34:33 +02:00
ctdb_daemon.c ctdb-daemon: Decrement pending calls statistics when calls are deferred 2014-09-12 08:46:14 +02:00
ctdb_event_helper.c ctdb: Use sys_read() and sys_write() to ensure correct signal interaction 2014-08-21 04:46:13 +02:00
ctdb_freeze.c ctdb-util: Rename db_wrap to tdb_wrap and make it a build subsystem 2014-09-10 01:36:15 +02:00
ctdb_keepalive.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_lock_helper.c ctdb-daemon: Fix the usage for lock helper 2014-09-25 17:16:31 +02:00
ctdb_lock.c ctdb-locking: Reset ttimer before doing an early return 2014-09-25 04:54:10 +02:00
ctdb_logging.c ctdb-logging: Update to use Samba style debug.h/debug.c 2014-10-06 12:34:33 +02:00
ctdb_ltdb_server.c ctdb-util: Rename db_wrap to tdb_wrap and make it a build subsystem 2014-09-10 01:36:15 +02:00
ctdb_monitor.c ctdb/daemon: Untangle serialisation of 1st recovery -> startup -> monitor 2014-01-17 17:59:41 +11:00
ctdb_persistent.c ctdb-util: Rename db_wrap to tdb_wrap and make it a build subsystem 2014-09-10 01:36:15 +02:00
ctdb_recover.c ctdb-util: Rename db_wrap to tdb_wrap and make it a build subsystem 2014-09-10 01:36:15 +02:00
ctdb_recoverd.c ctdb-logging: Change LogLevel to DEBUGLEVEL 2014-10-06 12:34:33 +02:00
ctdb_server.c ctdb-util: Add extra max_size argument to file_lines_load() 2014-09-10 01:36:15 +02:00
ctdb_serverids.c RB_TREE: Add mechanism to abort a traverse 2011-11-08 13:40:28 +11:00
ctdb_statistics.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_takeover.c ctdb-util: Add extra max_size argument to file_lines_load() 2014-09-10 01:36:15 +02:00
ctdb_traverse.c ctdb-util: Rename db_wrap to tdb_wrap and make it a build subsystem 2014-09-10 01:36:15 +02:00
ctdb_tunables.c ctdb-locking: Increase number of lock processes per database to 200 2014-08-04 17:59:52 +02:00
ctdb_update_record.c ctdb-util: Rename db_wrap to tdb_wrap and make it a build subsystem 2014-09-10 01:36:15 +02:00
ctdb_uptime.c Remove explicit include of lib/tevent/tevent.h. 2012-04-13 17:28:14 +10:00
ctdb_vacuum.c ctdb-util: Rename db_wrap to tdb_wrap and make it a build subsystem 2014-09-10 01:36:15 +02:00
ctdbd.c ctdb-logging: Remove log ringbuffer 2014-10-06 12:34:32 +02:00
eventscript.c ctdb: Use sys_read() and sys_write() to ensure correct signal interaction 2014-08-21 04:46:13 +02:00