1
0
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:
Michael Adam 2011-12-22 12:52:55 +01:00
parent 25ac808b07
commit 8b89e542e1

View File

@ -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);
}