Skip to content

Commit

Permalink
lib/ZnapZend/Config.pm: checkBackupSets(): do not assign "undef" src_…
Browse files Browse the repository at this point in the history
…mbuffer, fall back to "off" [#629]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jan 17, 2024
1 parent 42c6efe commit 5d9d6a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ZnapZend/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ my $checkBackupSets = sub {
$backupSet->{src_mbuffer} = undef;
}
}
if (!($backupSet->{src_mbuffer})) {
# Do not leave loose ends after all
$backupSet->{src_mbuffer} = 'off';
}
if (!exists($backupSet->{src_mbuffer_size}) or !($backupSet->{src_mbuffer_size})) {
$backupSet->{src_mbuffer_size} = $backupSet->{mbuffer_size};
$self->zLog->info("WARNING: property 'src_mbuffer_size' not set on backup for " . $backupSet->{src} . ", inheriting from legacy 'mbuffer_size': " . $backupSet->{src_mbuffer_size}) if $backupSet->{src_mbuffer_size};
Expand Down

0 comments on commit 5d9d6a9

Please sign in to comment.