From: Howard Chu Date: Mon, 12 Jul 2004 04:05:26 +0000 (+0000) Subject: Fix for non-thread run X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~83 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=214d3b26c1beb156549cab6f0c2c66960e30ca03;p=openldap Fix for non-thread run --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 5fa9a20ab6..23b35fe397 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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 ) ) {