]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Apply patch for bug #1182 about Recycle flag
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 20 Nov 2008 16:09:52 +0000 (16:09 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 20 Nov 2008 16:09:52 +0000 (16:09 +0000)
     that is not updated after a pool change.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8073 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/Patchnotes-2.5
bacula/patches/testing/1182-recycle-flag.patch [deleted file]
bacula/src/cats/sql_update.c
bacula/technotes-2.5

index f505f3424d46c5a6181f1abae78f9a1df32a2fe0..e72624f94d2a197f7c504ece3440c0bc3e71d682 100644 (file)
@@ -4,12 +4,9 @@
 Patches Committed:
 20Nov08
 patches/testing/1175-unique-inchanger.patch
-
-Patches being Tested:
-12Nov08
 patches/testing/1182-recycle-flag.patch
-ebl  Update Recycle flag during a db_media_update_record()
 
+Patches being Tested:
 patches/testing/fileid64.patch
 ebl  Update the FileId_t to 64bit, update catalog creation and
      upgrade scripts.
diff --git a/bacula/patches/testing/1182-recycle-flag.patch b/bacula/patches/testing/1182-recycle-flag.patch
deleted file mode 100644 (file)
index 56e8fae..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-
- This patch should fix the bug #1182 about Recycle flag
- that is not updated after a pool change.
- Should work for 2.4.3.
-
- cd <bacula-source>
- patch -p0 <1182-prune.patch
- ./configure <your-options>
- make
- ...
- make install
-
-Index: src/cats/sql_update.c
-===================================================================
---- src/cats/sql_update.c      (rĂ©vision 7981)
-+++ src/cats/sql_update.c      (copie de travail)
-@@ -384,7 +384,7 @@
-         "Slot=%d,InChanger=%d,VolReadTime=%s,VolWriteTime=%s,VolParts=%d,"
-         "LabelType=%d,StorageId=%s,PoolId=%s,VolRetention=%s,VolUseDuration=%s,"
-         "MaxVolJobs=%d,MaxVolFiles=%d,Enabled=%d,LocationId=%s,"
--        "ScratchPoolId=%s,RecyclePoolId=%s,RecycleCount=%d"
-+        "ScratchPoolId=%s,RecyclePoolId=%s,RecycleCount=%d,Recycle=%d"
-         " WHERE VolumeName='%s'",
-         mr->VolJobs, mr->VolFiles, mr->VolBlocks, edit_uint64(mr->VolBytes, ed1),
-         mr->VolMounts, mr->VolErrors, mr->VolWrites,
-@@ -402,7 +402,7 @@
-         mr->Enabled, edit_uint64(mr->LocationId, ed9),
-         edit_uint64(mr->ScratchPoolId, ed10),
-         edit_uint64(mr->RecyclePoolId, ed11),
--        mr->RecycleCount,
-+        mr->RecycleCount,mr->Recycle,
-         mr->VolumeName);
-    Dmsg1(400, "%s\n", mdb->cmd);
index 5e11a278f5862acee3d6173f80a36a22701157b1..d567fbff0f3c68211d5007fd01bfef6b4256fcb3 100644 (file)
@@ -384,7 +384,7 @@ db_update_media_record(JCR *jcr, B_DB *mdb, MEDIA_DBR *mr)
         "Slot=%d,InChanger=%d,VolReadTime=%s,VolWriteTime=%s,VolParts=%d,"
         "LabelType=%d,StorageId=%s,PoolId=%s,VolRetention=%s,VolUseDuration=%s,"
         "MaxVolJobs=%d,MaxVolFiles=%d,Enabled=%d,LocationId=%s,"
-        "ScratchPoolId=%s,RecyclePoolId=%s,RecycleCount=%d"
+        "ScratchPoolId=%s,RecyclePoolId=%s,RecycleCount=%d,Recycle=%d"
         " WHERE VolumeName='%s'",
         mr->VolJobs, mr->VolFiles, mr->VolBlocks, edit_uint64(mr->VolBytes, ed1),
         mr->VolMounts, mr->VolErrors, mr->VolWrites,
@@ -402,7 +402,7 @@ db_update_media_record(JCR *jcr, B_DB *mdb, MEDIA_DBR *mr)
         mr->Enabled, edit_uint64(mr->LocationId, ed9),
         edit_uint64(mr->ScratchPoolId, ed10),
         edit_uint64(mr->RecyclePoolId, ed11),
-        mr->RecycleCount,
+        mr->RecycleCount,mr->Recycle,
         mr->VolumeName);
 
    Dmsg1(400, "%s\n", mdb->cmd);
index 9991d9cddfbd39491c67ca6b944f44054df99805..c68d17a92de57da22d3b1111755b8bbc55cf639f 100644 (file)
@@ -11,6 +11,8 @@ mixed priorities
 
 General:
 20Nov08
+ebl  Apply patch for bug #1182  about Recycle flag
+     that is not updated after a pool change.
 kes  Since the user has been warned, allow console purge command 
      to purge volumes that are in use.
 kes  Fix Win32 build to add new sd_plugins.c