]> git.sur5r.net Git - openldap/commitdiff
ITS#7099 fix dds db_open
authorHoward Chu <hyc@openldap.org>
Tue, 29 Nov 2011 13:57:36 +0000 (05:57 -0800)
committerHoward Chu <hyc@openldap.org>
Tue, 29 Nov 2011 13:57:36 +0000 (05:57 -0800)
Should not do anything in tool mode.

servers/slapd/overlays/dds.c

index 661b30942bed542b3029b621ab0ab9436a91dee5..df51eb7e5886f37de90241d5e1e7035f6f02836b 100644 (file)
@@ -1708,6 +1708,9 @@ dds_db_open(
        int             rc = 0;
        void            *thrctx = ldap_pvt_thread_pool_context();
 
+       if ( slapMode & SLAP_TOOL_MODE )
+               return 0;
+
        if ( DDS_OFF( di ) ) {
                goto done;
        }