]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/ctxcsn.c
ITS#2919 move OpenLDAPtime to OpenLDAPperson
[openldap] / servers / slapd / ctxcsn.c
index 35e474b26986bb644f54c4b9cdc21df62325042c..defcac2e89dec319756c4d99f707dc9e1b4b078c 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2003-2004 The OpenLDAP Foundation.
+ * Copyright 2003-2005 The OpenLDAP Foundation.
  * Portions Copyright 2003 IBM Corporation.
  * All rights reserved.
  *
@@ -87,7 +87,13 @@ slap_graduate_commit_csn( Operation *op )
        if ( op == NULL ) return;
        if ( op->o_bd == NULL ) return;
 
+#if 0
+       /* it is NULL when we get here from the frontendDB;
+        * alternate fix: initialize frontendDB like all other backends */
        assert( op->o_bd->be_pcl_mutexp != NULL );
+#endif
+       
+       if ( op->o_bd->be_pcl_mutexp == NULL ) return;
 
        ldap_pvt_thread_mutex_lock( op->o_bd->be_pcl_mutexp );