diff options
author | Simon Rettberg | 2013-08-13 16:51:16 +0200 |
---|---|---|
committer | Simon Rettberg | 2013-08-13 16:51:16 +0200 |
commit | 4249a20d130262bc9b5e562fc73b712ce072b0b7 (patch) | |
tree | 30196f25d131d90ba25ed85db4decb8bd86a4c60 /src/server/locks.c | |
parent | I'm stupid (diff) | |
download | dnbd3-4249a20d130262bc9b5e562fc73b712ce072b0b7.tar.gz dnbd3-4249a20d130262bc9b5e562fc73b712ce072b0b7.tar.xz dnbd3-4249a20d130262bc9b5e562fc73b712ce072b0b7.zip |
[SERVER] Fix race condition in uplink request aggregation, other small improvements and debugging features
Diffstat (limited to 'src/server/locks.c')
-rw-r--r-- | src/server/locks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/locks.c b/src/server/locks.c index ce29b9a..413d317 100644 --- a/src/server/locks.c +++ b/src/server/locks.c @@ -16,6 +16,7 @@ #include <stdlib.h> #include "globals.h" #include "memlog.h" +#include "helper.h" #define MAXLOCKS 500 #define MAXTHREADS 500 @@ -254,6 +255,7 @@ void debug_dump_lock_stats() static void *debug_thread_watchdog(void *something) { + setThreadName("debug-watchdog"); while ( !_shutdown ) { if ( init_done ) { time_t now = time( NULL ); |