1
0
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:
Bram Matthys
2021-08-06 10:32:42 +02:00
parent 088996b16e
commit 4a72b8f519
4 changed files with 3 additions and 11 deletions
+1 -3
View File
@@ -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 { \
-4
View File
@@ -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);
+1 -1
View File
@@ -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
View File
@@ -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 { \