]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Change the deadlock check interval to 20mins
authorEric Bollengier <eric@baculasystems.com>
Tue, 8 Aug 2023 12:37:10 +0000 (14:37 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
bacula/src/lib/lockmgr.c

index c88a56cfc9897f4abd5958a269496dd55f25ff96..cbd3e44a74c3a6f42098ac0aa575e05ba15b2824 100644 (file)
 #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);