diff options
author | Michael Adam <obnox@samba.org> | 2011-12-22 12:52:55 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-12-23 17:39:10 +0100 |
commit | 8b89e542e1c53e05d67a3aae996406b323d6d62e (patch) | |
tree | bf5e13a8b8fadd3995a7f0aa842a1a90a8decac1 | |
parent | 25ac808b07457d376618095d81e686d6426b3601 (diff) | |
download | samba-8b89e542e1c53e05d67a3aae996406b323d6d62e.tar.gz samba-8b89e542e1c53e05d67a3aae996406b323d6d62e.tar.xz samba-8b89e542e1c53e05d67a3aae996406b323d6d62e.zip |
tunables: don't list obsolete tunables in the list_tunables control
(This used to be ctdb commit d8ab86f0eb11437e50d18183858dd3177a8f61e6)
-rw-r--r-- | ctdb/server/ctdb_tunables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_tunables.c b/ctdb/server/ctdb_tunables.c index ca94485380..d7323ec77c 100644 --- a/ctdb/server/ctdb_tunables.c +++ b/ctdb/server/ctdb_tunables.c @@ -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); } |