]> git.sur5r.net Git - openldap/commitdiff
warn if retry is not forever
authorPierangelo Masarati <ando@openldap.org>
Mon, 16 Nov 2009 09:58:12 +0000 (09:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 16 Nov 2009 09:58:12 +0000 (09:58 +0000)
servers/slapd/syncrepl.c

index 9b6d4d3c001dc7f6b2af5de1331eee865862e2c3..80b7c34b7f1827b173e65012894167a3e1c35984 100644 (file)
@@ -3930,6 +3930,12 @@ parse_syncrepl_retry(
                        }
                }
        }
+       if ( j < 1 || si->si_retrynum_init[j-1] != RETRYNUM_FOREVER ) {
+               Debug( LDAP_DEBUG_CONFIG,
+                       "%s: syncrepl will eventually stop retrying; the \"retry\" parameter should end with a '+'.\n",
+                       c->log, 0, 0 );
+       }
+
        si->si_retrynum_init[j] = RETRYNUM_TAIL;
        si->si_retrynum[j] = RETRYNUM_TAIL;
        si->si_retryinterval[j] = 0;