From: Kern Sibbald Date: Sat, 19 Dec 2015 11:07:49 +0000 (+0100) Subject: Set jcr in heartbeat thread of FD X-Git-Tag: Release-7.4.0~108 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=335addcc234aa4e6cc0e5acfa7af529075533361;p=bacula%2Fbacula Set jcr in heartbeat thread of FD --- diff --git a/bacula/src/filed/heartbeat.c b/bacula/src/filed/heartbeat.c index 783bfb24be..e3ffdcdf56 100644 --- a/bacula/src/filed/heartbeat.c +++ b/bacula/src/filed/heartbeat.c @@ -48,6 +48,7 @@ extern "C" void *sd_heartbeat_thread(void *arg) time_t last_heartbeat = time(NULL); time_t now; + set_jcr_in_tsd(jcr); pthread_detach(pthread_self()); /* Get our own local copy */