summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handshake.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handshake.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handshake.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c
index bea5540..dbf342c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handshake.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c
@@ -93,7 +93,11 @@ build_volfile_path (const char *volname, char *path,
vol = strtok_r (dup_volname, ".", &tmp);
if (!vol)
goto out;
- ret = glusterd_volinfo_find (vol, &volinfo);
+ if (!snap_volume)
+ ret = glusterd_volinfo_find (vol, &volinfo);
+ else
+ ret = glusterd_snap_volinfo_find (vol,
+ &volinfo);
if (ret)
goto out;
}