From 2bd9a9fe89903ea4f0f0861415ae2be7fe83efcd Mon Sep 17 00:00:00 2001 From: Sanju Rakonde Date: Tue, 2 Jul 2019 15:23:00 +0530 Subject: glusterd: don't log a warning message for tier-enabled key We are logging a warning message saying unknown-key for tier-enabled kay. although the tier xlator is deprecated, this key is left behind for handling the peer rejection issues in a heterogeneous cluster. We need not to log if this key is not found/recognised. updates: bz#1727008 Change-Id: Ia68661898a618f99a240ca8d8a124ff6a65ebe9d Signed-off-by: Sanju Rakonde (cherry picked from commit 7d270d05f835d41e32572501246b50181dc9be56) --- xlators/mgmt/glusterd/src/glusterd-store.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c index bc2ebd610de..081ffdf5301 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.c +++ b/xlators/mgmt/glusterd/src/glusterd-store.c @@ -3266,8 +3266,11 @@ glusterd_store_update_volinfo(glusterd_volinfo_t *volinfo) case 0: /*Ignore GLUSTERD_STORE_KEY_VOL_BRICK since - glusterd_store_retrieve_bricks gets it later*/ - if (!strstr(key, GLUSTERD_STORE_KEY_VOL_BRICK)) + glusterd_store_retrieve_bricks gets it later. + also, ignore tier-enabled key as we deprecated + tier xlator*/ + if (!strstr(key, GLUSTERD_STORE_KEY_VOL_BRICK) || + !strstr(key, GF_TIER_ENABLED)) gf_msg(this->name, GF_LOG_WARNING, 0, GD_MSG_UNKNOWN_KEY, "Unknown key: %s", key); break; -- cgit