2016-01-25 14:05:16 +01:00
|
|
|
From d4b247e43fe1ea1b3713f3d8f493422d5adcc537 Mon Sep 17 00:00:00 2001
|
|
|
|
From: HouzuoGuo <guohouzuo@gmail.com>
|
|
|
|
Date: Fri, 13 Mar 2015 16:14:10 +0100
|
|
|
|
Subject: [PATCH] In monitor backend, do not return Connection0 entries as they
|
|
|
|
are created for internal use only.
|
|
|
|
|
|
|
|
---
|
|
|
|
servers/slapd/back-monitor/conn.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/servers/slapd/back-monitor/conn.c b/servers/slapd/back-monitor/conn.c
|
2021-08-26 22:16:29 +02:00
|
|
|
index 4d327f243..c4d3c6237 100644
|
2016-01-25 14:05:16 +01:00
|
|
|
--- a/servers/slapd/back-monitor/conn.c
|
|
|
|
+++ b/servers/slapd/back-monitor/conn.c
|
2021-08-26 22:16:29 +02:00
|
|
|
@@ -456,6 +456,11 @@ monitor_subsys_conn_create(
|
2016-01-25 14:05:16 +01:00
|
|
|
c != NULL;
|
|
|
|
c = connection_next( c, &connindex ) )
|
|
|
|
{
|
|
|
|
+ /* Connection 0 is created by connection_client_setup for internal use only */
|
|
|
|
+ if (c->c_connid == 0) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
monitor_entry_t *mp;
|
|
|
|
|
2021-08-26 22:16:29 +02:00
|
|
|
/* ignore outbound for now, nothing to show */
|