From 01f4fbf27375d64bd927387891a3f9d2983f16fc Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 2 Nov 2017 10:10:59 +0100 Subject: [PATCH] Add ASSERTD() to track NULL Volume name error --- bacula/src/stored/append.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")); } -- 2.39.2