{ "RecoveryDropAllIPs", 60, offsetof(struct ctdb_tunable, recovery_drop_all_ips) },
{ "VerifyRecoveryLock", 1, offsetof(struct ctdb_tunable, verify_recovery_lock) },
{ "VacuumDefaultInterval", 10, offsetof(struct ctdb_tunable, vacuum_default_interval) },
- { "VacuumMaxRunTime", 5, offsetof(struct ctdb_tunable, vacuum_max_run_time) },
+ { "VacuumMaxRunTime", 5, offsetof(struct ctdb_tunable, vacuum_max_run_time) },
+ { "RepackLimit", 10000, offsetof(struct ctdb_tunable, repack_limit) },
};
/*
static int ctdb_repack_db(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx)
{
- uint32_t repack_limit = 10000; /* should be made tunable */
+ uint32_t repack_limit = ctdb_db->ctdb->tunable.repack_limit;
const char *name = ctdb_db->db_name;
int size = tdb_freelist_size(ctdb_db->ltdb->tdb);