]> git.sur5r.net Git - bacula/bacula/commitdiff
Add ASSERTD() to track NULL Volume name error
authorEric Bollengier <eric@baculasystems.com>
Thu, 2 Nov 2017 09:10:59 +0000 (10:10 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 12 Nov 2017 09:33:25 +0000 (10:33 +0100)
bacula/src/stored/append.c

index 9d137e20285aa7fe5dcb0e69d4959d23b0218b0e..db2cc1e190429f0d763620d8b75ff9f0843b08e9 100644 (file)
@@ -102,7 +102,7 @@ bool do_append_data(JCR *jcr)
    dev->start_of_job(dcr);
    jcr->sendJobStatus(JS_Running);
 
-   //ASSERT(dev->VolCatInfo.VolCatName[0]);
+   ASSERTD(dev->VolCatInfo.VolCatName[0], "NULL Volume name. This shouldn't happen!!!\n");
    if (dev->VolCatInfo.VolCatName[0] == 0) {
       Pmsg0(000, _("NULL Volume name. This shouldn't happen!!!\n"));
    }
@@ -112,7 +112,7 @@ bool do_append_data(JCR *jcr)
    begin_attribute_spool(jcr);
 
    Dmsg0(100, "Just after acquire_device_for_append\n");
-   //ASSERT(dev->VolCatInfo.VolCatName[0]);
+   ASSERTD(dev->VolCatInfo.VolCatName[0], "NULL Volume name. This shouldn't happen!!!\n");
    if (dev->VolCatInfo.VolCatName[0] == 0) {
       Pmsg0(000, _("NULL Volume name. This shouldn't happen!!!\n"));
    }
@@ -126,7 +126,7 @@ bool do_append_data(JCR *jcr)
       ok = false;
    }
 
-   //ASSERT(dev->VolCatInfo.VolCatName[0]);
+   ASSERTD(dev->VolCatInfo.VolCatName[0], "NULL Volume name. This shouldn't happen!!!\n");
    if (dev->VolCatInfo.VolCatName[0] == 0) {
       Pmsg0(000, _("NULL Volume name. This shouldn't happen!!!\n"));
    }