]> git.sur5r.net Git - openldap/commitdiff
no schema checking patch for proxy cache (apurva)
authorJong Hyuk Choi <jongchoi@openldap.org>
Wed, 3 Sep 2003 15:44:22 +0000 (15:44 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Wed, 3 Sep 2003 15:44:22 +0000 (15:44 +0000)
servers/slapd/back-meta/cache-config.c
servers/slapd/schema_check.c
servers/slapd/slap.h

index b14e28a3e014f17c2f409f3f1808efb712db6ed5..a7bc35d9ccbb3a2f08deb28c3ac49a0dfb96eede 100644 (file)
@@ -112,6 +112,7 @@ meta_back_cache_config(
                        cache_suffix = be->be_nsuffix[0];
                }
                li->glue_be = select_backend( &cache_suffix, 0, 1 );
+               li->glue_be->be_flags |= SLAP_BFLAG_NO_SCHEMA_CHECK;
                if ( cache_suffix.bv_val != be->be_nsuffix[0].bv_val ) {
                        ch_free( cache_suffix.bv_val );
                }
index 2aeafa3abd17bb2f00edba7052b9ce537a52d226..c15d78eb37efb94fc8f098b5fb1ede14b465fcf7 100644 (file)
@@ -56,6 +56,10 @@ entry_schema_check(
        int subentry = is_entry_subentry( e );
        int collectiveSubentry = 0;
 
+       if ( SLAP_NO_SCHEMA_CHECK( be )) {
+               return LDAP_SUCCESS;
+       }
+
        if( subentry ) {
                collectiveSubentry = is_entry_collectiveAttributeSubentry( e );
        }
index 2e86932c6ffc5d7786caef222dcd2df2c0cdb415..c62d40d993c913db64c6a56d39369778094a3762 100644 (file)
@@ -1395,7 +1395,7 @@ struct slap_backend_db {
 #define SLAP_BFLAG_DYNAMIC                     0x8000U
        slap_mask_t     be_flags;
 #define SLAP_LASTMOD(be)       (!((be)->be_flags & SLAP_BFLAG_NOLASTMOD))
-#define SLAP_NO_SCHEMA_CHECK   (!((be)->be_flags & SLAP_BFLAG_NO_SCHEMA_CHECK))
+#define SLAP_NO_SCHEMA_CHECK(be)       (((be)->be_flags & SLAP_BFLAG_NO_SCHEMA_CHECK))
 #define        SLAP_GLUE_INSTANCE(be)  ((be)->be_flags & SLAP_BFLAG_GLUE_INSTANCE)
 #define        SLAP_GLUE_SUBORDINATE(be) \
        ((be)->be_flags & SLAP_BFLAG_GLUE_SUBORDINATE)