* auto_mark - whether to mark/unmark DBs in before/after callback
*/
-/* FIXME: Add a tunable max_lock_processes_per_db */
-#define MAX_LOCK_PROCESSES_PER_DB (100)
-
enum lock_type {
LOCK_RECORD,
LOCK_DB,
talloc_free(lock_ctx);
} else {
if (lock_ctx->ctdb_db == NULL ||
- lock_ctx->ctdb_db->lock_num_current < MAX_LOCK_PROCESSES_PER_DB) {
+ lock_ctx->ctdb_db->lock_num_current < ctdb->tunable.lock_processes_per_db) {
/* Found a lock context with lock requests */
break;
}
{ "NoIPHostOnAllDisabled", 0, offsetof(struct ctdb_tunable, no_ip_host_on_all_disabled), false },
{ "Samba3AvoidDeadlocks", 0, offsetof(struct ctdb_tunable, samba3_hack), false },
{ "TDBMutexEnabled", 0, offsetof(struct ctdb_tunable, mutex_enabled), false },
+ { "LockProcessesPerDB", 100, offsetof(struct ctdb_tunable, lock_processes_per_db), false },
};
/*