Skip to content

Commit

Permalink
Merge pull request #946 from rightaditya/master
Browse files Browse the repository at this point in the history
Fix single quotes that should be double quotes
  • Loading branch information
jimsalterjrs authored Aug 9, 2024
2 parents a7e6c2d + 81938c3 commit 826d4d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sanoid
Original file line number Diff line number Diff line change
Expand Up @@ -868,10 +868,10 @@ sub getsnaps {
@rawsnaps = <FH>;
close FH;

open FH, "> $cache.tmp" or die 'Could not write to $cache.tmp!\n';
open FH, "> $cache.tmp" or die "Could not write to $cache.tmp!\n";
print FH @rawsnaps;
close FH;
rename("$cache.tmp", "$cache") or die 'Could not rename to $cache!\n';
rename("$cache.tmp", "$cache") or die "Could not rename to $cache!\n";
removelock('sanoid_cacheupdate');
} else {
if ($args{'verbose'}) { print "INFO: deferring cache update - valid cache update lock held by another sanoid process.\n"; }
Expand Down Expand Up @@ -1106,10 +1106,10 @@ sub init {
print "INFO: dataset cache expired - updating from zfs list.\n";
}
}
open FH, "> $cachedatasetspath.tmp" or die 'Could not write to $cachedatasetspath.tmp!\n';
open FH, "> $cachedatasetspath.tmp" or die "Could not write to $cachedatasetspath.tmp!\n";
print FH @updatedatasets;
close FH;
rename("$cachedatasetspath.tmp", "$cachedatasetspath") or die 'Could not rename to $cachedatasetspath!\n';
rename("$cachedatasetspath.tmp", "$cachedatasetspath") or die "Could not rename to $cachedatasetspath!\n";
removelock('sanoid_cachedatasetupdate');
} else {
if ($args{'verbose'}) { print "INFO: deferring dataset cache update - valid cache update lock held by another sanoid process.\n"; }
Expand Down Expand Up @@ -1733,14 +1733,14 @@ sub removecachedsnapshots {
my @rawsnaps = <FH>;
close FH;
open FH, "> $cache.tmp" or die 'Could not write to $cache.tmp!\n';
open FH, "> $cache.tmp" or die "Could not write to $cache.tmp!\n";
foreach my $snapline ( @rawsnaps ) {
my @columns = split("\t", $snapline);
my $snap = $columns[0];
print FH $snapline unless ( exists($pruned{$snap}) );
}
close FH;
rename("$cache.tmp", "$cache") or die 'Could not rename to $cache!\n';
rename("$cache.tmp", "$cache") or die "Could not rename to $cache!\n";
removelock('sanoid_cacheupdate');
%snaps = getsnaps(\%config,$cacheTTL,0);
Expand Down

0 comments on commit 826d4d1

Please sign in to comment.