Merge pull request #286 from phreaker0/no-sleep

removed sleeping between snapshot taking
This commit is contained in:
Jim Salter 2018-12-04 16:05:51 -05:00 committed by GitHub
commit 1042414911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

2
sanoid
View File

@ -532,8 +532,6 @@ sub take_snapshots {
if (!$args{'readonly'}) {
system($zfs, "snapshot", "$snap") == 0
or warn "CRITICAL ERROR: $zfs snapshot $snap failed, $?";
# make sure we don't end up with multiple snapshots with the same ctime
sleep 1;
}
if ($config{$dataset}{'post_snapshot_script'} and !$args{'readonly'}) {
if (!$presnapshotfailure or $config{$dataset}{'force_post_snapshot_script'}) {