Speed-up Sync process
This is a simple change which speeds up Sync process on systems with a high amount of Snapshots. It gets only Snapshots desired for the targeted FS and reduces output and thus Parsing time of the get command in the first place, and schould greatly reduce later processes (sorting arrays, mathing snaps) due to the reduced overhead.
This commit is contained in:
parent
2f4d8a6e5c
commit
58362924de
2
syncoid
2
syncoid
|
@ -547,7 +547,7 @@ sub getsnaps() {
|
|||
|
||||
if ($rhost ne '') { $rhost = "$sshcmd $rhost"; }
|
||||
|
||||
my $getsnapcmd = "$rhost $zfscmd get -Hp creation |";
|
||||
my $getsnapcmd = "$rhost $zfscmd get -Hpr creation $fs |";
|
||||
if ($debug) { print "DEBUG: getting list of snapshots on $fs...\n"; }
|
||||
open FH, $getsnapcmd;
|
||||
my @rawsnaps = <FH>;
|
||||
|
|
Loading…
Reference in New Issue