]> git.sur5r.net Git - openldap/commitdiff
Fix for non-thread run
authorHoward Chu <hyc@openldap.org>
Mon, 12 Jul 2004 04:05:26 +0000 (04:05 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 12 Jul 2004 04:05:26 +0000 (04:05 +0000)
servers/slapd/back-bdb/cache.c

index 5fa9a20ab6cd6c9489ad0b85063e556bc8924370..23b35fe397493d2c1dcebd6b7e4252650c45fbb6 100644 (file)
@@ -1181,7 +1181,7 @@ bdb_txn_get( Operation *op, DB_ENV *env, DB_TXN **txn )
        /* Shouldn't happen unless we're single-threaded */
        if ( !ctx ) {
                *txn = NULL;
-               return -1;
+               return 0;
        }
 
        if ( ldap_pvt_thread_pool_getkey( ctx, ((char *)env)+1, &data, NULL ) ) {