From: Eric Bollengier Date: Thu, 2 Nov 2017 09:10:59 +0000 (+0100) Subject: Add ASSERTD() to track NULL Volume name error X-Git-Tag: Release-9.0.6~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01f4fbf27375d64bd927387891a3f9d2983f16fc;p=bacula%2Fbacula Add ASSERTD() to track NULL Volume name error --- diff --git a/bacula/src/stored/append.c b/bacula/src/stored/append.c index 9d137e2028..db2cc1e190 100644 --- a/bacula/src/stored/append.c +++ b/bacula/src/stored/append.c @@ -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")); }