From: Eric Bollengier Date: Wed, 18 Feb 2009 09:19:13 +0000 (+0000) Subject: ebl Add ActionOnPurge field to Media and Pool table X-Git-Tag: Release-3.0.0~225 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=88a0bb9fb80dc9195a453bf79939d4a8dfbe01a7;p=bacula%2Fbacula ebl Add ActionOnPurge field to Media and Pool table git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8463 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/testing/next-beta.patch b/bacula/patches/testing/next-beta.patch index 1a92ae97ba..0dd6678bb7 100644 --- a/bacula/patches/testing/next-beta.patch +++ b/bacula/patches/testing/next-beta.patch @@ -1,7 +1,7 @@ Index: ReleaseNotes =================================================================== ---- ReleaseNotes (révision 8456) -+++ ReleaseNotes (copie de travail) +--- ReleaseNotes (revision 8456) ++++ ReleaseNotes (working copy) @@ -17,10 +17,9 @@ This BETA release of Bacula uses a new catalog format. We provide a set of @@ -18,8 +18,8 @@ Index: ReleaseNotes this operation will take TIME and will DOUBLE THE SIZE of your Index: src/dird/job.c =================================================================== ---- src/dird/job.c (révision 8456) -+++ src/dird/job.c (copie de travail) +--- src/dird/job.c (revision 8456) ++++ src/dird/job.c (working copy) @@ -860,6 +860,7 @@ jcr->jr.JobStatus = jcr->JobStatus; jcr->jr.JobFiles = jcr->JobFiles; @@ -30,8 +30,8 @@ Index: src/dird/job.c jcr->jr.JobErrors = jcr->Errors; Index: src/dird/ua_prune.c =================================================================== ---- src/dird/ua_prune.c (révision 8456) -+++ src/dird/ua_prune.c (copie de travail) +--- src/dird/ua_prune.c (revision 8456) ++++ src/dird/ua_prune.c (working copy) @@ -194,12 +194,12 @@ utime_t now = (utime_t)time(NULL); @@ -49,8 +49,8 @@ Index: src/dird/ua_prune.c } Index: src/cats/sql_update.c =================================================================== ---- src/cats/sql_update.c (révision 8456) -+++ src/cats/sql_update.c (copie de travail) +--- src/cats/sql_update.c (revision 8456) ++++ src/cats/sql_update.c (working copy) @@ -137,11 +137,11 @@ edit_uint64(now - age, ed1); @@ -89,30 +89,33 @@ Index: src/cats/sql_update.c rdt, Index: src/cats/update_postgresql_tables.in =================================================================== ---- src/cats/update_postgresql_tables.in (révision 8456) -+++ src/cats/update_postgresql_tables.in (copie de travail) -@@ -11,13 +11,24 @@ +--- src/cats/update_postgresql_tables.in (revision 8456) ++++ src/cats/update_postgresql_tables.in (working copy) +@@ -11,13 +11,28 @@ if $bindir/psql -f - -d ${db_name} $* <cmd, "SELECT VolSessionId,VolSessionTime," "PoolId,StartTime,EndTime,JobFiles,JobBytes,JobTDate,Job,JobStatus," @@ -615,8 +920,8 @@ Index: src/cats/sql_get.c jr->EndTime = str_to_utime(jr->cEndTime); Index: src/cats/drop_mysql_tables.in =================================================================== ---- src/cats/drop_mysql_tables.in (révision 8456) -+++ src/cats/drop_mysql_tables.in (copie de travail) +--- src/cats/drop_mysql_tables.in (revision 8456) ++++ src/cats/drop_mysql_tables.in (working copy) @@ -16,7 +16,7 @@ DROP TABLE IF EXISTS File; DROP TABLE IF EXISTS Client; @@ -628,8 +933,8 @@ Index: src/cats/drop_mysql_tables.in DROP TABLE IF EXISTS Pool; Index: src/cats/make_mysql_tables.in =================================================================== ---- src/cats/make_mysql_tables.in (révision 8456) -+++ src/cats/make_mysql_tables.in (copie de travail) +--- src/cats/make_mysql_tables.in (revision 8456) ++++ src/cats/make_mysql_tables.in (working copy) @@ -29,7 +29,7 @@ @@ -682,7 +987,23 @@ Index: src/cats/make_mysql_tables.in CREATE TABLE Location ( LocationId INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, -@@ -269,7 +296,7 @@ +@@ -190,6 +217,7 @@ + 'Read-Only', 'Disabled', 'Error', 'Busy', 'Used', 'Cleaning') NOT NULL, + Enabled TINYINT DEFAULT 1, + Recycle TINYINT DEFAULT 0, ++ ActionOnPurge TINYINT DEFAULT 0, + VolRetention BIGINT UNSIGNED DEFAULT 0, + VolUseDuration BIGINT UNSIGNED DEFAULT 0, + MaxVolJobs INTEGER UNSIGNED DEFAULT 0, +@@ -229,6 +257,7 @@ + MaxVolBytes BIGINT UNSIGNED DEFAULT 0, + AutoPrune TINYINT DEFAULT 0, + Recycle TINYINT DEFAULT 0, ++ ActionOnPurge TINYINT DEFAULT 0, + PoolType ENUM('Backup', 'Copy', 'Cloned', 'Archive', 'Migration', 'Scratch') NOT NULL, + LabelType TINYINT DEFAULT 0, + LabelFormat TINYBLOB, +@@ -269,7 +298,7 @@ BaseId INTEGER UNSIGNED AUTO_INCREMENT, BaseJobId INTEGER UNSIGNED NOT NULL REFERENCES Job, JobId INTEGER UNSIGNED NOT NULL REFERENCES Job, @@ -691,7 +1012,7 @@ Index: src/cats/make_mysql_tables.in FileIndex INTEGER UNSIGNED, PRIMARY KEY(BaseId) ); -@@ -333,7 +360,7 @@ +@@ -333,7 +362,7 @@ ); -- Initialize Version @@ -702,8 +1023,8 @@ Index: src/cats/make_mysql_tables.in then Index: src/bc_types.h =================================================================== ---- src/bc_types.h (révision 8456) -+++ src/bc_types.h (copie de travail) +--- src/bc_types.h (revision 8456) ++++ src/bc_types.h (working copy) @@ -57,7 +57,7 @@ * In principle, the only field that really should need to be * 64 bits is the FileId_t