From cf8349f89595b1e653ce087aaa433949f0cf0e4c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Jan 2002 13:32:01 +0000 Subject: [PATCH] Added "fewest" lockdetect keyword, to abort txn with fewest locks --- servers/slapd/back-bdb/config.c | 3 +++ 1 file changed, 3 insertions(+) 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", -- 2.39.5