From: Howard Chu Date: Fri, 18 Jan 2002 13:32:01 +0000 (+0000) Subject: Added "fewest" lockdetect keyword, to abort txn with fewest locks X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~77 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cf8349f89595b1e653ce087aaa433949f0cf0e4c;p=openldap Added "fewest" lockdetect keyword, to abort txn with fewest locks --- diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index aaf82d8688..f6ab841ba4 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -94,6 +94,9 @@ bdb_db_config( } else if( strcasecmp( argv[1], "youngest" ) == 0 ) { bdb->bi_lock_detect = DB_LOCK_YOUNGEST; + } else if( strcasecmp( argv[1], "fewest" ) == 0 ) { + bdb->bi_lock_detect = DB_LOCK_MINLOCKS; + } else { fprintf( stderr, "%s: line %d: " "bad policy (%s) in \"lockDetect \" line\n",