Skip to content

Commit

Permalink
Merge pull request #106 from hathitrust/glacier-restore-fails
Browse files Browse the repository at this point in the history
Don't restore deleted objects
  • Loading branch information
aelkiss committed May 30, 2023
2 parents f9ce8cc + c05b8d9 commit 0901a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/HTFeed/StorageAudit/ObjectStore.pm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ sub objects_to_audit {
$self->_request_object($self->random_object());
my $sql = 'SELECT namespace,id,version,path FROM feed_backups' .
' WHERE storage_name=?' .
' AND restore_request IS NOT NULL';
' AND deleted IS NULL and restore_request IS NOT NULL';
$self->{pending_objects} = [];
eval {
my $ref = get_dbh->selectall_arrayref($sql, undef, $self->{storage_name});
Expand Down

0 comments on commit 0901a4b

Please sign in to comment.