ldap/admin/src/logconv.pl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
New commits: commit 87ad36b865f85297feb40c4b61db82101b9a9447 Author: Rich Megginson rmeggins@redhat.com Date: Tue Oct 8 11:04:31 2013 -0600
Ticket #47551 logconv: -V does not produce unindexed search report
https://fedorahosted.org/389/ticket/47551 Reviewed by: mreynolds (Thanks!) Branch: master Fix Description: Execute the $usage /u/ code also when verb == yes. Platforms tested: RHEL6 x86_64 Flag Day: no Doc impact: no
diff --git a/ldap/admin/src/logconv.pl b/ldap/admin/src/logconv.pl index 8de1e8e..865e113 100755 --- a/ldap/admin/src/logconv.pl +++ b/ldap/admin/src/logconv.pl @@ -676,9 +676,9 @@ if ($verb eq "yes" || $usage =~ /u/ || $usage =~ /U/){ my $unindexedIp; my %uniqFilt = (); # hash of unique filters while (my ($srcnt_conn_op, $count) = each %{$notesa_conn_op}) { - my ($srvRstCnt, $conn, $op) = split(",", $srcnt_conn_op); - $unindexedIp = getIPfromConn($conn, $srvRstCnt); - if ($usage =~ /u/) { + if ($verb eq "yes" || $usage =~ /u/) { + my ($srvRstCnt, $conn, $op) = split(",", $srcnt_conn_op); + my $unindexedIp = getIPfromConn($conn, $srvRstCnt); print "\n Unindexed Search #".$notesCount." (notes=A)\n"; print " - Date/Time: $time_conn_op->{$srcnt_conn_op}\n"; print " - Connection Number: $conn\n"; @@ -694,7 +694,7 @@ if ($verb eq "yes" || $usage =~ /u/ || $usage =~ /U/){ } } if (exists($filter_conn_op->{$srcnt_conn_op}) && defined($filter_conn_op->{$srcnt_conn_op})) { - if ($usage =~ /u/) { + if ($verb eq "yes" || $usage =~ /u/) { print " - Search Filter: $filter_conn_op->{$srcnt_conn_op}\n"; } $uniqFilt{$filter_conn_op->{$srcnt_conn_op}}++; @@ -724,9 +724,9 @@ if ($verb eq "yes" || $usage =~ /u/ || $usage =~ /U/){ my $unindexedIp; my %uniqFilt = (); # hash of unique filters while (my ($srcnt_conn_op, $count) = each %{$notesu_conn_op}) { - my ($srvRstCnt, $conn, $op) = split(",", $srcnt_conn_op); - $unindexedIp = getIPfromConn($conn, $srvRstCnt); - if ($usage =~ /u/) { + if ($verb eq "yes" || $usage =~ /u/) { + my ($srvRstCnt, $conn, $op) = split(",", $srcnt_conn_op); + $unindexedIp = getIPfromConn($conn, $srvRstCnt); print "\n Unindexed Component #".$notesCount." (notes=U)\n"; print " - Date/Time: $time_conn_op->{$srcnt_conn_op}\n"; print " - Connection Number: $conn\n"; @@ -742,7 +742,7 @@ if ($verb eq "yes" || $usage =~ /u/ || $usage =~ /U/){ } } if (exists($filter_conn_op->{$srcnt_conn_op}) && defined($filter_conn_op->{$srcnt_conn_op})) { - if ($usage =~ /u/) { + if ($verb eq "yes" || $usage =~ /u/) { print " - Search Filter: $filter_conn_op->{$srcnt_conn_op}\n"; } $uniqFilt{$filter_conn_op->{$srcnt_conn_op}}++;
389-commits@lists.fedoraproject.org