From 3a6b39958061979adb1d1283f6b454ff217f48d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Thu, 5 Apr 2018 11:34:20 +0100 Subject: [PATCH] Reflect backend URI change in cn=monitor --- servers/lloadd/monitor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/lloadd/monitor.c b/servers/lloadd/monitor.c index aae835d1e3..55bc207915 100644 --- a/servers/lloadd/monitor.c +++ b/servers/lloadd/monitor.c @@ -728,6 +728,12 @@ lload_monitor_server_update( ldap_pvt_thread_mutex_unlock( &b->b_mutex ); + /* Right now, there is no way to retrieve the entry from monitor's + * cache to replace URI at the moment it is modified */ + a = attr_find( e->e_attrs, ad_olmServerURI ); + assert( a != NULL ); + ber_bvreplace( &a->a_vals[0], &b->b_uri ); + a = attr_find( e->e_attrs, ad_olmActiveConnections ); assert( a != NULL ); UI2BV( &a->a_vals[0], active );