]> git.sur5r.net Git - bacula/bacula/commitdiff
Set jcr in heartbeat thread of FD
authorKern Sibbald <kern@sibbald.com>
Sat, 19 Dec 2015 11:07:49 +0000 (12:07 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 19 Dec 2015 11:07:49 +0000 (12:07 +0100)
bacula/src/filed/heartbeat.c

index 783bfb24be492f7e823dd29f539a9c24e09a2177..e3ffdcdf568526b6406bc0ea9e5ee2bc3da04ca7 100644 (file)
@@ -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 */