]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/stored.c
I finally found and squashed the elusive SD crash.
[bacula/bacula] / bacula / src / stored / stored.c
index 42bf1e17473bfc35147dd2622d6d7d30289aab37..b91718ed486885119280e360242e83625754ac9d 100644 (file)
@@ -221,11 +221,11 @@ int main (int argc, char *argv[])
     /*
      * Start the device allocation thread
      */
+   create_volume_list();              /* do before device_init */
    if (pthread_create(&thid, NULL, device_initialization, NULL) != 0) {
       Emsg1(M_ABORT, 0, _("Unable to create thread. ERR=%s\n"), strerror(errno));
    }
 
-   create_volume_list();
    start_watchdog();                  /* start watchdog thread */
    init_jcr_subsystem();              /* start JCR watchdogs etc. */