diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2019-07-02 15:23:00 +0530 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2019-07-29 13:20:52 +0000 |
commit | 2bd9a9fe89903ea4f0f0861415ae2be7fe83efcd (patch) | |
tree | 248fd8ff6516277035e2dfbd0795978e20d6b2cd | |
parent | 8f2440656bb3c0ec5781dc9c299c48770c171b0b (diff) |
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 <srakonde@redhat.com>
(cherry picked from commit 7d270d05f835d41e32572501246b50181dc9be56)
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-store.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; |