From 007bfd963240d7cf80b4f1b5f652cf142bcadb65 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Mon, 7 Sep 2015 14:29:15 +0530 Subject: gfapi: transport and port are optional for glfs_set_volfile_server Only server is the required argument for glfs_set_volfile_server and both transport and port are optional. When glfs_set_volfile_server is invocated multiple times, only on the first invocation we replace port 0 with 24007 and transport NULL with "tcp". Hence, replacing the parameters at the entry function is the right way. Change-Id: If9f4a5f7fd9038eed140e2f47167a8fd11acc2f6 BUG: 1260561 Signed-off-by: Raghavendra Talur Signed-off-by: Prasanna Kumar Kalever Reviewed-on: http://review.gluster.org/12114 Tested-by: NetBSD Build System Reviewed-by: Niels de Vos Tested-by: Gluster Build System --- libglusterfs/src/globals.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h index 46c9ca27f6c..976302e73f9 100644 --- a/libglusterfs/src/globals.h +++ b/libglusterfs/src/globals.h @@ -12,6 +12,7 @@ #define _GLOBALS_H #define GF_DEFAULT_BASE_PORT 24007 +#define GF_DEFAULT_VOLFILE_TRANSPORT "tcp" #define GD_OP_VERSION_KEY "operating-version" #define GD_MIN_OP_VERSION_KEY "minimum-operating-version" -- cgit