Skip to content

Commit 723400c

Browse files
authored
Merge pull request #179 from hathitrust/ETT-1473-checkpoint-storage-name
ETT-1473: checkpoint needs to account for storage
2 parents b9f54f3 + 3080e3d commit 723400c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/audit/truenas_audit.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"insert into feed_audit_detail (namespace, id, storage_name, path, status, detail) values (?,?,?,?,?,?)";
3838

3939
my $checkpoint_sel =
40-
"select lastmd5check > ? from feed_storage where namespace = ? and id = ?";
40+
"select lastmd5check > ? from feed_storage where namespace = ? and id = ? and storage_name = ?";
4141

4242
### set /sdr1 to /sdrX for test & parallelization
4343

@@ -189,7 +189,7 @@ sub zipcheck {
189189

190190
# don't check this item if we just looked at it
191191
if(defined $checkpoint) {
192-
my $sth = execute_stmt($checkpoint_sel,$checkpoint,$namespace,$objid);
192+
my $sth = execute_stmt($checkpoint_sel,$checkpoint,$namespace,$objid, $storage_name);
193193
if(my @row = $sth->fetchrow_array()) {
194194
return if @row and $row[0];
195195
}

0 commit comments

Comments
 (0)