From: Eric Bollengier Date: Tue, 8 Aug 2023 12:37:10 +0000 (+0200) Subject: Change the deadlock check interval to 20mins X-Git-Tag: Beta-15.0.0~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb610c510a9e909fb6f4deff3ec604b1a10d5ac2;p=thirdparty%2Fbacula.git Change the deadlock check interval to 20mins --- diff --git a/bacula/src/lib/lockmgr.c b/bacula/src/lib/lockmgr.c index c88a56cfc..cbd3e44a7 100644 --- a/bacula/src/lib/lockmgr.c +++ b/bacula/src/lib/lockmgr.c @@ -80,6 +80,12 @@ #endif #endif +#ifdef DEVELOPER +#define CHECK_INTERVAL 30 +#else +#define CHECK_INTERVAL 1200 +#endif + /* Inspired from http://www.cs.berkeley.edu/~kamil/teaching/sp03/041403.pdf @@ -762,7 +768,7 @@ void *check_deadlock(void *) gettimeofday(&tv, &tz); timeout.tv_nsec = 0; - timeout.tv_sec = tv.tv_sec + 30; + timeout.tv_sec = tv.tv_sec + CHECK_INTERVAL; pthread_mutex_lock(&undertaker_mutex); pthread_cond_timedwait(&undertaker_cond, &undertaker_mutex, &timeout);