From ba3076a462afbe557686845f1aaecc92e32b935b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 25 Dec 2012 14:08:04 +0100 Subject: [PATCH] Display more info when maximum spool size is reached --- bacula/src/stored/spool.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/bacula/src/stored/spool.c b/bacula/src/stored/spool.c index 47654eea35..395bd48c38 100644 --- a/bacula/src/stored/spool.c +++ b/bacula/src/stored/spool.c @@ -475,16 +475,14 @@ bool write_block_to_spool_file(DCR *dcr) } V(mutex); if (despool) { -#ifdef xDEBUG char ec1[30], ec2[30], ec3[30], ec4[30]; - Dmsg4(100, "Despool in write_block_to_spool_file max_size=%s size=%s " - "max_job_size=%s job_size=%s\n", - edit_uint64_with_commas(dcr->max_job_spool_size, ec1), - edit_uint64_with_commas(dcr->job_spool_size, ec2), - edit_uint64_with_commas(dcr->dev->max_spool_size, ec3), - edit_uint64_with_commas(dcr->dev->spool_size, ec4)); -#endif - Jmsg(dcr->jcr, M_INFO, 0, _("User specified spool size reached.\n")); + Jmsg(dcr->jcr, M_INFO, 0, _("User specified spool size reached: " + "JobSpoolSize=%s MaxJobSpool=%s DevSpoolSize=%s MaxDevSpool=%s\n"), + edit_uint64_with_commas(dcr->job_spool_size, ec1), + edit_uint64_with_commas(dcr->max_job_spool_size, ec2), + edit_uint64_with_commas(dcr->dev->spool_size, ec3), + edit_uint64_with_commas(dcr->dev->max_spool_size, ec4)); + if (!despool_data(dcr, false)) { Pmsg0(000, _("Bad return from despool in write_block.\n")); return false; -- 2.39.5