store filename in backup_parts
[BackupPC.git] / bin / BackupPC_ASA_SearchUpdate
index 034642f..e691bd8 100755 (executable)
@@ -304,6 +304,7 @@ if ($opt->create) {
                        md5 text not null,
                        items int not null check (items > 0),
                        date timestamp default now(),
+                       filename text not null,
                        primary key(id)
                );
 
@@ -357,8 +358,6 @@ if ($opt->create) {
                $dbh->do( qq{ CREATE SEQUENCE $seq } );
        }
 
-=for later
-
        print " creating triggers ";
        $dbh->do( <<__END_OF_TRIGGER__ );
 
@@ -420,8 +419,6 @@ create trigger do_backup_backup_parts_check
 
 __END_OF_TRIGGER__
 
-=cut
-
        print "...\n";
 
        $dbh->commit;
@@ -598,8 +595,10 @@ foreach my $host_key (@hosts) {
 
                        if ($nf + $nd > 0) {
                                status "$hostname $backupNum full-text | indexing";
-                               eval { hest_update($hostID, $shareID, $backupNum) };
-                               warn "ERROR: $@" if $@;
+                               #eval { hest_update($hostID, $shareID, $backupNum) };
+                               #warn "ERROR: $@" if $@;
+                               hest_update($hostID, $shareID, $backupNum);
+                               # eval breaks our re-try logic
                        }
                }