mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 16:03:12 +02:00
Remove unnecessary debugging/benchmark info from eos, channeldb, reputation, tkldb
This commit is contained in:
@@ -27,9 +27,7 @@ ModuleHeader MOD_HEADER = {
|
||||
#define MAGIC_CHANNEL_START 0x11111111
|
||||
#define MAGIC_CHANNEL_END 0x22222222
|
||||
|
||||
#ifdef DEBUGMODE
|
||||
#define BENCHMARK
|
||||
#endif
|
||||
// #undef BENCHMARK
|
||||
|
||||
#define WARN_WRITE_ERROR(fname) \
|
||||
do { \
|
||||
|
||||
@@ -65,10 +65,6 @@ CMD_FUNC(cmd_eos)
|
||||
return;
|
||||
client->serv->flags.synced = 1;
|
||||
/* pass it on ^_- */
|
||||
#ifdef DEBUGMODE
|
||||
ircd_log(LOG_ERROR, "[EOSDBG] cmd_eos: got sync from %s (path:%s)", client->name, client->direction->name);
|
||||
ircd_log(LOG_ERROR, "[EOSDBG] cmd_eos: broadcasting it back to everyone except route from %s", client->direction->name);
|
||||
#endif
|
||||
sendto_server(client, 0, 0, NULL, ":%s EOS", client->id);
|
||||
|
||||
RunHook(HOOKTYPE_SERVER_SYNCED, client);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
/* Change to #define to benchmark. Note that this will add random
|
||||
* reputation entries so should never be used on production servers!!!
|
||||
*/
|
||||
#define BENCHMARK
|
||||
#undef BENCHMARK
|
||||
#undef TEST
|
||||
|
||||
/* Benchmark results (2GHz Xeon Skylake, compiled with -O2, Linux):
|
||||
|
||||
+1
-3
@@ -38,8 +38,7 @@ ModuleHeader MOD_HEADER = {
|
||||
*/
|
||||
#define TKLDB_SAVE_EVERY_DELTA +15
|
||||
|
||||
#ifdef DEBUGMODE
|
||||
#define BENCHMARK
|
||||
// #undef BENCHMARK
|
||||
/* Benchmark results (2GHz Xeon Skylake, compiled with -O2, Linux):
|
||||
* 100,000 zlines:
|
||||
* - load db: 510 ms
|
||||
@@ -48,7 +47,6 @@ ModuleHeader MOD_HEADER = {
|
||||
* which executes every 5 minutes.
|
||||
* Of course, exact figures will depend on the machine.
|
||||
*/
|
||||
#endif
|
||||
|
||||
#define FreeTKLRead() \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user