From d322953d5d73db82c0000eb8d4ddc9c3a8bf638d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 5 Jul 2009 16:51:23 +0000 Subject: [PATCH 1/1] Turn off bat debug code git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8960 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/kernstodo | 6 ++++++ bacula/src/qt-console/storage/storage.cpp | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bacula/kernstodo b/bacula/kernstodo index 2d2f3d7a06..094281543a 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -81,6 +81,12 @@ Professional Needs: Priority: ================ +- When reserving a device to read, check to see if the Volume + is already in use, if so wait. Probably will need to pass the + Volume. See bug #1313. Create a regression test to simulate + this problem and see if VolumePollInterval fixes it. Possibly turn + it on by default. + - Fix restore of acls and extended attributes to count ERROR messages and make errors non-fatal. - Put save/restore various platform acl/xattrs on a pointer to simplify diff --git a/bacula/src/qt-console/storage/storage.cpp b/bacula/src/qt-console/storage/storage.cpp index 04b20ba5fe..089b64817d 100644 --- a/bacula/src/qt-console/storage/storage.cpp +++ b/bacula/src/qt-console/storage/storage.cpp @@ -451,12 +451,16 @@ void Storage::settingsOpenStatus(QString &storage) settings.beginGroup("OpenOnExit"); QString toRead = "StorageStatus_" + storage; if (settings.value(toRead) == 1) { - Pmsg1(000, "Do open Storage Status window for : %s\n", storage.toUtf8().data()); + if (mainWin->m_sqlDebug) { + Pmsg1(000, "Do open Storage Status window for : %s\n", storage.toUtf8().data()); + } new StorStat(storage, mainWin->getFromHash(this)); setCurrent(); mainWin->getFromHash(this)->setExpanded(true); } else { - Pmsg1(000, "Do NOT open Storage Status window for : %s\n", storage.toUtf8().data()); + if (mainWin->m_sqlDebug) { + Pmsg1(000, "Do NOT open Storage Status window for : %s\n", storage.toUtf8().data()); + } } settings.endGroup(); } -- 2.39.5