path: root/xlators/mgmt/glusterd/src
diff options
authorRavishankar N <>2014-03-10 06:55:11 +0000
committerAnand Avati <>2014-03-26 23:40:44 -0700
commit468a14b8b10639f0983be57e985cc9db98c6550c (patch)
treeb135fc0076f349878b27dfbd62691be067d6bb5a /xlators/mgmt/glusterd/src
parent21c282ef311d3d7385bba37ddb0a26fb12178409 (diff)
glusterd: suppress spurious error message during startup
From glusterd log: ---------- E [glusterd-store.c:1981:glusterd_store_retrieve_volume] 0-: Unknown key: brick-0 ---------- The message is emitted from glusterd_store_retrieve_volume() when it reads the volinfo file because it doesn't do anything with the key-value pair. Suppress the error. The key is needed by glusterd_store_retrieve_bricks() which anyway re-reads it. Also change the log level to WARNING since we do not error out if an unknown key is got while parsing the volinfo file. Change-Id: Icd7962d9e16e0f90e6a37ee053dcafe97d2cab94 BUG: 1079279 Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Kaushal M <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
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 37cf988..d5bfeda 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -1994,8 +1994,11 @@ glusterd_store_retrieve_volume (char *volname)
goto out;
case 0:
- gf_log ("", GF_LOG_ERROR, "Unknown key: %s",
- key);
+ glusterd_store_retrieve_bricks gets it later*/
+ if (!strstr (key, GLUSTERD_STORE_KEY_VOL_BRICK))
+ gf_log ("", GF_LOG_WARNING,
+ "Unknown key: %s", key);
case 1: