summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/dht/src/switch.c')
-rw-r--r--xlators/cluster/dht/src/switch.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/switch.c b/xlators/cluster/dht/src/switch.c
index e4bed0dd96e..211834fb5fe 100644
--- a/xlators/cluster/dht/src/switch.c
+++ b/xlators/cluster/dht/src/switch.c
@@ -949,6 +949,15 @@ init (xlator_t *this)
goto err;
}
+ /* Create 'syncop' environment */
+ conf->env = syncenv_new (0);
+ if (!conf->env) {
+ gf_log (this->name, GF_LOG_ERROR,
+ "failed to create sync environment %s",
+ strerror (errno));
+ goto err;
+ }
+
this->private = conf;
return 0;