ctdb-daemon: Log a warning when setting obsolete tunables
authorMartin Schwenke <martin@meltin.net>
Tue, 9 Dec 2014 02:49:06 +0000 (13:49 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 13 Feb 2015 06:19:07 +0000 (07:19 +0100)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_tunables.c

index f5713f8d416925481e26e4f5333ad9936dc24522..544a9e0397c01da916517a455fc64a47688ff014 100644 (file)
@@ -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;
 }