1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

Do not allow the "VerifyRecoveryLock" tunable to be changed if there is no reclock file

(This used to be ctdb commit 5334e40978350b6b597ee020bac52e37c8f9a8ba)
This commit is contained in:
Ronnie Sahlberg 2009-06-25 14:45:17 +10:00
parent 969cb64056
commit 816db4be38

View File

@ -135,6 +135,13 @@ int32_t ctdb_control_set_tunable(struct ctdb_context *ctdb, TDB_DATA indata)
if (strcasecmp(name, tunable_map[i].name) == 0) break;
}
if (!strcmp(name, "VerifyRecoveryLock") && t->value != 0
&& ctdb->recovery_lock_file == NULL) {
DEBUG(DEBUG_ERR,("Can not activate tunable \"VerifyRecoveryLock\" since there is no recovery lock file set.\n"));
talloc_free(name);
return -1;
}
talloc_free(name);
if (i == ARRAY_SIZE(tunable_map)) {