]> 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>
Thu, 15 Feb 2024 17:55:09 +0000 (17:55 +0000)
servers/slapd/overlays/syncprov.c

index f208846fa94c0c539e6fbfb8fbc9bc49e655e536..6d36ae4399b4e3e5bdd2db20ca05dc31e1fbc994 100644 (file)
@@ -3878,14 +3878,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 "