summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-handshake.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/server/src/server-handshake.c')
-rw-r--r--xlators/protocol/server/src/server-handshake.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-handshake.c b/xlators/protocol/server/src/server-handshake.c
index 249dde7de76..64267f2aef9 100644
--- a/xlators/protocol/server/src/server-handshake.c
+++ b/xlators/protocol/server/src/server-handshake.c
@@ -425,6 +425,10 @@ server_setvolume (rpcsvc_request_t *req)
}
this = req->svc->xl;
+ /* this is to ensure config_params is populated with the first brick
+ * details at first place if brick multiplexing is enabled
+ */
+ config_params = dict_copy_with_ref (this->options, NULL);
buf = memdup (args.dict.dict_val, args.dict.dict_len);
if (buf == NULL) {
@@ -484,7 +488,7 @@ server_setvolume (rpcsvc_request_t *req)
goto fail;
}
- config_params = dict_copy_with_ref (xl->options, NULL);
+ config_params = dict_copy_with_ref (xl->options, config_params);
conf = this->private;
if (conf->parent_up == _gf_false) {