]> git.sur5r.net Git - bacula/bacula/commitdiff
Move term_reservations_lock lower down, because it blows
authorDan Langille <dan@langille.org>
Wed, 12 Sep 2007 21:02:59 +0000 (21:02 +0000)
committerDan Langille <dan@langille.org>
Wed, 12 Sep 2007 21:02:59 +0000 (21:02 +0000)
away the volume_list lock which is used in free_volume_list().

Detected by: Dan Langille - who noticed bacula-sd.core files
Fixed by: Eric Bollengier - who read the backtrace...

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5537 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/stored.c

index 996f4fc358956d80e0708a4f7d0b0f2ffe6dca85..3a5eff611fea539f9f56cec88859ea866521f360 100644 (file)
@@ -600,10 +600,10 @@ void terminate_stored(int sig)
    if (debug_level > 10) {
       print_memory_pool_stats();
    }
-   term_reservations_lock();
    term_msg();
    cleanup_crypto();
    free_volume_list();
+   term_reservations_lock();
    close_memory_pool();
 
    sm_dump(false);                    /* dump orphaned buffers */