diff options
author | Martin Schwenke <martin@meltin.net> | 2014-12-09 13:49:06 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2015-02-13 07:19:07 +0100 |
commit | 4d3b52f1cec46f66f8d0827bc8f458cd8c86b5a5 (patch) | |
tree | f585b944749b0b1a81669c26b100bf8907aafa7f /ctdb | |
parent | d110fe231849d76ecb83378c934627dc64b74c72 (diff) | |
download | samba-4d3b52f1cec46f66f8d0827bc8f458cd8c86b5a5.tar.gz samba-4d3b52f1cec46f66f8d0827bc8f458cd8c86b5a5.tar.xz samba-4d3b52f1cec46f66f8d0827bc8f458cd8c86b5a5.zip |
ctdb-daemon: Log a warning when setting obsolete tunables
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/server/ctdb_tunables.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_tunables.c b/ctdb/server/ctdb_tunables.c index f5713f8d41..544a9e0397 100644 --- a/ctdb/server/ctdb_tunables.c +++ b/ctdb/server/ctdb_tunables.c @@ -171,6 +171,12 @@ int32_t ctdb_control_set_tunable(struct ctdb_context *ctdb, TDB_DATA indata) *(uint32_t *)(tunable_map[i].offset + (uint8_t*)&ctdb->tunable) = t->value; + if (tunable_map[i].obsolete) { + DEBUG(DEBUG_WARNING, + ("Setting obsolete tunable \"%s\"\n", + tunable_map[i].name)); + } + return 0; } |