summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 352cf21748e..f84bdbe7208 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -6018,6 +6018,15 @@ glusterd_nodesvc_connect (char *server, char *socketpath)
600);
if (ret)
goto out;
+
+ if (!strcmp(server, "glustershd") ||
+ !strcmp(server, "nfs") ||
+ !strcmp(server, "quotad")) {
+ ret = dict_set_str(options, "transport.socket.ignore-enoent", "on");
+ if (ret)
+ goto out;
+ }
+
ret = glusterd_rpc_create (&rpc, options,
glusterd_nodesvc_rpc_notify,
server);
@@ -13229,6 +13238,11 @@ glusterd_snapd_connect (glusterd_volinfo_t *volinfo, char *socketpath)
if (ret)
goto out;
+ ret = dict_set_str(options,
+ "transport.socket.ignore-enoent", "on");
+ if (ret)
+ goto out;
+
glusterd_volinfo_ref (volinfo);
synclock_unlock (&priv->big_lock);