Added "fewest" lockdetect keyword, to abort txn with fewest locks

This commit is contained in:
Howard Chu 2002-01-18 13:32:01 +00:00
parent 9f1591d5e9
commit cf8349f895

View 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",