]> git.sur5r.net Git - openldap/commitdiff
Added "fewest" lockdetect keyword, to abort txn with fewest locks
authorHoward Chu <hyc@openldap.org>
Fri, 18 Jan 2002 13:32:01 +0000 (13:32 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 18 Jan 2002 13:32:01 +0000 (13:32 +0000)
servers/slapd/back-bdb/config.c

index aaf82d8688748ec2a6b8149e95d7a6682d59ee7d..f6ab841ba4adafbcb792be14e90a1f7af2256fc1 100644 (file)
@@ -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 <policy> <seconds>\" line\n",