From 335addcc234aa4e6cc0e5acfa7af529075533361 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 19 Dec 2015 12:07:49 +0100 Subject: [PATCH] Set jcr in heartbeat thread of FD --- bacula/src/filed/heartbeat.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.39.5