]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9823 Move to a place that is better associated with accesslog
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 30 Jan 2024 14:56:11 +0000 (14:56 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 5 Feb 2024 22:57:17 +0000 (22:57 +0000)
servers/slapd/overlays/syncprov.c

index 88b077b2fa3623634c209b834a0077ab883cba83..cfa3f320e6e40698e264ede9ec11787b5b288412 100644 (file)
@@ -3882,14 +3882,14 @@ sp_cf_gen(ConfigArgs *c)
                break;
        case SP_NOPRES:
                si->si_nopres = c->value_int;
-               break;
-       case SP_USEHINT:
-               si->si_usehint = c->value_int;
-               if ( si->si_usehint ) {
+               if ( si->si_nopres ) {
                        /* Consider we might be a delta provider, but it's ok if not */
                        (void)syncprov_setup_accesslog();
                }
                break;
+       case SP_USEHINT:
+               si->si_usehint = c->value_int;
+               break;
        case SP_LOGDB:
                if ( si->si_logs ) {
                        Debug( LDAP_DEBUG_ANY, "syncprov_config: while configuring "