git.samba.org
/
amitay
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f81243
)
tunables: don't list obsolete tunables in the list_tunables control
author
Michael Adam
<obnox@samba.org>
Thu, 22 Dec 2011 11:52:55 +0000
(12:52 +0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 12 Jan 2012 07:50:42 +0000
(08:50 +0100)
(cherry picked from commit
d8ab86f0eb11437e50d18183858dd3177a8f61e6
)
server/ctdb_tunables.c
patch
|
blob
|
history
diff --git
a/server/ctdb_tunables.c
b/server/ctdb_tunables.c
index a8460d39c38dfb2dd21d82b4cfb2950a17b20350..11e1f8166e777082e54045f260d65ad95f90dc45 100644
(file)
--- a/
server/ctdb_tunables.c
+++ b/
server/ctdb_tunables.c
@@
-177,6
+177,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);
}