]> git.sur5r.net Git - bacula/bacula/commitdiff
Flush console queued job messages -- should fix bug #2054
authorKern Sibbald <kern@sibbald.com>
Sat, 3 May 2014 09:31:16 +0000 (11:31 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 3 May 2014 09:31:16 +0000 (11:31 +0200)
bacula/src/dird/ua_output.c

index 00a6c3be89a5cdcbc358f4d43f43e0f9cc0d762f..d5106fd1b2c8ef16d9a85b996d3816b55866186a 100644 (file)
@@ -751,6 +751,9 @@ void do_messages(UAContext *ua, const char *cmd)
    int mlen;
    bool do_truncate = false;
 
+   if (ua->jcr) {
+      dequeue_messages(ua->jcr);
+   }
    Pw(con_lock);
    pthread_cleanup_push(con_lock_release, (void *)NULL);
    rewind(con_fd);