]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Should fix #1323
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 14 Jul 2009 14:01:19 +0000 (14:01 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 14 Jul 2009 14:01:19 +0000 (14:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8988 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/sql_get.c
bacula/src/dird/verify.c
bacula/src/filed/verify_vol.c

index 8190fa84ee6a6023eb4bd69c1c51c48f7ded5c8c..74b807ece56d9ac5be47597bcf6423c92d2642e1 100644 (file)
@@ -33,7 +33,7 @@
  *
  *    Kern Sibbald, March 2000
  *
- *    Version $Id$
+ *    Version $Id: sql_get.c 8918 2009-06-23 11:56:35Z ricozz $
  */
 
 
index 926fed7ee9c6e09898b425b66d9c23ccd7d97f1f..2f0eaa658826b892adb25dbaefda52879367f08f 100644 (file)
@@ -750,7 +750,7 @@ void get_attributes_and_compare_to_catalog(JCR *jcr, JobId_t JobId)
    jcr->fn_printed = false;
    bsnprintf(buf, sizeof(buf),
       "SELECT Path.Path,Filename.Name FROM File,Path,Filename "
-      "WHERE File.JobId=%d "
+      "WHERE File.JobId=%d AND File.FileIndex > 0 "
       "AND File.MarkId!=%d AND File.PathId=Path.PathId "
       "AND File.FilenameId=Filename.FilenameId",
          JobId, jcr->JobId);
index 3a29808bf930dbc953ac0a4830b8f32dfcd344fe..7a9e88eac9dbf67a3181f4b1c93392312b9b2f55 100644 (file)
@@ -199,6 +199,11 @@ void do_verify_volume(JCR *jcr)
             stat = bnet_fsend(dir, "%d %d %s %s%c%s%c%s%c", jcr->JobFiles,
                           STREAM_UNIX_ATTRIBUTES, "pinsug5", fname,
                           0, ap, 0, lname, 0);
+         /* for a deleted record, we set fileindex=0 */
+         } else if (type == FT_DELETED)  {
+            stat = bnet_fsend(dir,"%d %d %s %s%c%s%c%c", 0,
+                          STREAM_UNIX_ATTRIBUTES, "pinsug5", fname,
+                          0, ap, 0, 0);
          } else {
             stat = bnet_fsend(dir,"%d %d %s %s%c%s%c%c", jcr->JobFiles,
                           STREAM_UNIX_ATTRIBUTES, "pinsug5", fname,