]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Reflect backend URI change in cn=monitor
authorOndřej Kuzník <okuznik@symas.com>
Thu, 5 Apr 2018 10:34:20 +0000 (11:34 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:58:14 +0000 (17:58 +0000)
servers/lloadd/monitor.c

index aae835d1e388af9a7e94a029757588db15919826..55bc2079152f26dade377de373c8f6722eb9d50a 100644 (file)
@@ -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 );