[Date Prev][Date Next] [Chronological] [Thread] [Top]

BDB transactions patch



In the OL 2.2 tree, I would apply the following transactions patch to back-bdb:

--- openldap-2.2.18/servers/slapd/back-bdb/cache.c.orig 2004-10-08 21:26:50.000000000 -0700
+++ openldap-2.2.18/servers/slapd/back-bdb/cache.c 2004-11-08 16:18:00.734351000 -0800
@@ -1187,7 +1187,7 @@


if ( ldap_pvt_thread_pool_getkey( ctx, ((char *)env)+1, &data, NULL ) ) {
for ( i=0, rc=1; rc != 0 && i<4; i++ ) {
- rc = TXN_BEGIN( env, NULL, txn, 0 );
+ rc = TXN_BEGIN( env, NULL, txn, DB_TXN_NOT_DURABLE );
if (rc) ldap_pvt_thread_yield();
}
if ( rc != 0) {


However, in HEAD, the "if" statement has changed quite a bit:


if ( ldap_pvt_thread_pool_getkey( ctx, env, &data, NULL ) ) { for ( i=0, rc=1; rc != 0 && i<4; i++ ) { rc = XLOCK_ID( env, &lockid ); if (rc) ldap_pvt_thread_yield(); } if ( rc != 0) {


I'm guessing then that this patch is not relevant when using 2.3/HEAD?

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin