mirror of
https://github.com/samba-team/samba.git
synced 2025-03-02 08:58:33 +03:00
tunables: don't list obsolete tunables in the list_tunables control
(This used to be ctdb commit d8ab86f0eb11437e50d18183858dd3177a8f61e6)
This commit is contained in:
parent
25ac808b07
commit
8b89e542e1
@ -183,6 +183,9 @@ int32_t ctdb_control_list_tunables(struct ctdb_context *ctdb, TDB_DATA *outdata)
|
||||
CTDB_NO_MEMORY(ctdb, list);
|
||||
|
||||
for (i=1;i<ARRAY_SIZE(tunable_map);i++) {
|
||||
if (tunable_map[i].obsolete) {
|
||||
continue;
|
||||
}
|
||||
list = talloc_asprintf_append(list, ":%s", tunable_map[i].name);
|
||||
CTDB_NO_MEMORY(ctdb, list);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user