|
|
ba46c7 |
From 8b10f83f01590c9753f707df106d44277d6cf07a Mon Sep 17 00:00:00 2001
|
|
|
ba46c7 |
From: Rich Megginson <rmeggins@redhat.com>
|
|
|
ba46c7 |
Date: Tue, 8 Oct 2013 11:04:31 -0600
|
|
|
ba46c7 |
Subject: [PATCH 29/39] Ticket #47551 logconv: -V does not produce unindexed search report
|
|
|
ba46c7 |
|
|
|
ba46c7 |
https://fedorahosted.org/389/ticket/47551
|
|
|
ba46c7 |
Reviewed by: mreynolds (Thanks!)
|
|
|
ba46c7 |
Branch: master
|
|
|
ba46c7 |
Fix Description: Execute the $usage /u/ code also when verb == yes.
|
|
|
ba46c7 |
Platforms tested: RHEL6 x86_64
|
|
|
ba46c7 |
Flag Day: no
|
|
|
ba46c7 |
Doc impact: no
|
|
|
ba46c7 |
(cherry picked from commit 87ad36b865f85297feb40c4b61db82101b9a9447)
|
|
|
ba46c7 |
cherry pick from master did not apply cleanly and was fixed up
|
|
|
ba46c7 |
(cherry picked from commit 1197d9dd48f32fb2d5e41de06c6cea3b181acbc9)
|
|
|
ba46c7 |
---
|
|
|
ba46c7 |
ldap/admin/src/logconv.pl | 20 ++++++++++----------
|
|
|
ba46c7 |
1 files changed, 10 insertions(+), 10 deletions(-)
|
|
|
ba46c7 |
|
|
|
ba46c7 |
diff --git a/ldap/admin/src/logconv.pl b/ldap/admin/src/logconv.pl
|
|
|
ba46c7 |
index 275ce34..7381a66 100755
|
|
|
ba46c7 |
--- a/ldap/admin/src/logconv.pl
|
|
|
ba46c7 |
+++ b/ldap/admin/src/logconv.pl
|
|
|
ba46c7 |
@@ -674,10 +674,10 @@ if ($verb eq "yes" || $usage =~ /u/ || $usage =~ /U/){
|
|
|
ba46c7 |
my $unindexedIp;
|
|
|
ba46c7 |
my %uniqFilt = (); # hash of unique filters
|
|
|
ba46c7 |
while (my ($srcnt_conn_op, $count) = each %{$notesa_conn_op}) {
|
|
|
ba46c7 |
- my ($srvRstCnt, $conn, $op) = split(",", $srcnt_conn_op);
|
|
|
ba46c7 |
- $unindexedIp = getIPfromConn($conn, $srvRstCnt);
|
|
|
ba46c7 |
- if ($usage =~ /u/) {
|
|
|
ba46c7 |
- print "\n Unindexed Search #".$notesCount."\n";
|
|
|
ba46c7 |
+ if ($verb eq "yes" || $usage =~ /u/) {
|
|
|
ba46c7 |
+ my ($srvRstCnt, $conn, $op) = split(",", $srcnt_conn_op);
|
|
|
ba46c7 |
+ my $unindexedIp = getIPfromConn($conn, $srvRstCnt);
|
|
|
ba46c7 |
+ print "\n Unindexed Search #".$notesCount." (notes=A)\n";
|
|
|
ba46c7 |
print " - Date/Time: $time_conn_op->{$srcnt_conn_op}\n";
|
|
|
ba46c7 |
print " - Connection Number: $conn\n";
|
|
|
ba46c7 |
print " - Operation Number: $op\n";
|
|
|
ba46c7 |
@@ -692,7 +692,7 @@ if ($verb eq "yes" || $usage =~ /u/ || $usage =~ /U/){
|
|
|
ba46c7 |
}
|
|
|
ba46c7 |
}
|
|
|
ba46c7 |
if (exists($filter_conn_op->{$srcnt_conn_op}) && defined($filter_conn_op->{$srcnt_conn_op})) {
|
|
|
ba46c7 |
- if ($usage =~ /u/) {
|
|
|
ba46c7 |
+ if ($verb eq "yes" || $usage =~ /u/) {
|
|
|
ba46c7 |
print " - Search Filter: $filter_conn_op->{$srcnt_conn_op}\n";
|
|
|
ba46c7 |
}
|
|
|
ba46c7 |
$uniqFilt{$filter_conn_op->{$srcnt_conn_op}}++;
|
|
|
ba46c7 |
@@ -722,10 +722,10 @@ if ($verb eq "yes" || $usage =~ /u/ || $usage =~ /U/){
|
|
|
ba46c7 |
my $unindexedIp;
|
|
|
ba46c7 |
my %uniqFilt = (); # hash of unique filters
|
|
|
ba46c7 |
while (my ($srcnt_conn_op, $count) = each %{$notesu_conn_op}) {
|
|
|
ba46c7 |
- my ($srvRstCnt, $conn, $op) = split(",", $srcnt_conn_op);
|
|
|
ba46c7 |
- $unindexedIp = getIPfromConn($conn, $srvRstCnt);
|
|
|
ba46c7 |
- if ($usage =~ /u/) {
|
|
|
ba46c7 |
- print "\n Unindexed Component #".$notesCount."\n";
|
|
|
ba46c7 |
+ if ($verb eq "yes" || $usage =~ /u/) {
|
|
|
ba46c7 |
+ my ($srvRstCnt, $conn, $op) = split(",", $srcnt_conn_op);
|
|
|
ba46c7 |
+ $unindexedIp = getIPfromConn($conn, $srvRstCnt);
|
|
|
ba46c7 |
+ print "\n Unindexed Component #".$notesCount." (notes=U)\n";
|
|
|
ba46c7 |
print " - Date/Time: $time_conn_op->{$srcnt_conn_op}\n";
|
|
|
ba46c7 |
print " - Connection Number: $conn\n";
|
|
|
ba46c7 |
print " - Operation Number: $op\n";
|
|
|
ba46c7 |
@@ -740,7 +740,7 @@ if ($verb eq "yes" || $usage =~ /u/ || $usage =~ /U/){
|
|
|
ba46c7 |
}
|
|
|
ba46c7 |
}
|
|
|
ba46c7 |
if (exists($filter_conn_op->{$srcnt_conn_op}) && defined($filter_conn_op->{$srcnt_conn_op})) {
|
|
|
ba46c7 |
- if ($usage =~ /u/) {
|
|
|
ba46c7 |
+ if ($verb eq "yes" || $usage =~ /u/) {
|
|
|
ba46c7 |
print " - Search Filter: $filter_conn_op->{$srcnt_conn_op}\n";
|
|
|
ba46c7 |
}
|
|
|
ba46c7 |
$uniqFilt{$filter_conn_op->{$srcnt_conn_op}}++;
|
|
|
ba46c7 |
--
|
|
|
ba46c7 |
1.7.1
|
|
|
ba46c7 |
|