From 02c35594508559f1b6222f4dd85a528dd91a64a8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 8 Jul 2016 11:52:10 +0200 Subject: [PATCH] + fix oracle mode --- database/oracle/mode/rmanbackupage.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/database/oracle/mode/rmanbackupage.pm b/database/oracle/mode/rmanbackupage.pm index c01fc3634..5a04879d9 100644 --- a/database/oracle/mode/rmanbackupage.pm +++ b/database/oracle/mode/rmanbackupage.pm @@ -112,9 +112,6 @@ sub run { my $label = $_; $label =~ s/ /-/g; foreach my $row (@$result) { - - next if (defined($already_checked->{$$row[0]})); - if (defined($self->{option_results}->{incremental_level})) { # db incr with incremental level 0 = DB FULL if (/db full/ && $$row[0] =~ /db incr/i && defined($$row[2]) && $$row[2] == 0) { # it's a full. we get @@ -123,11 +120,14 @@ sub run { next if (/db incr/ && $$row[0] =~ /db incr/i && defined($$row[2]) && $$row[2] == 0); # it's a full. we skip. next if ($$row[0] !~ /$_/i); } - - $already_checked->{$$row[0]} = 1; + } else { next if ($$row[0] !~ /$_/i); } + + next if (defined($already_checked->{$$row[0]})); + + $already_checked->{$$row[0]} = 1; $count_backups++; $executed = 1;