From a0fdc9202ca37dccab937e166c8ee696d049e08f Mon Sep 17 00:00:00 2001 From: Xavi Hernandez Date: Fri, 23 Nov 2018 10:37:40 +0100 Subject: core: create a constant for default network timeout A new constant named GF_NETWORK_TIMEOUT has been defined and all references to the hard-coded timeout of 42 seconds have been replaced with this constant. Change-Id: Id30f5ce4f1230f9288d9e300538624bcf1a6da27 fixes: bz#1652852 Signed-off-by: Xavi Hernandez --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'xlators/mgmt/glusterd/src') diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index ed6263e55f1..99ee00cf6d0 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -1415,7 +1415,6 @@ struct volopt_map_entry glusterd_volopt_map[] = { {.key = "network.ping-timeout", .voltype = "protocol/client", .op_version = 1, - .value = "42", .flags = VOLOPT_FLAG_CLIENT_OPT}, {.key = "network.tcp-window-size", .voltype = "protocol/client", @@ -1577,7 +1576,6 @@ struct volopt_map_entry glusterd_volopt_map[] = { .voltype = "protocol/server", .option = "transport.tcp-user-timeout", .op_version = GD_OP_VERSION_3_10_2, - .value = "0", /* 0 - implies "use system default" */ }, { .key = "server.keepalive-time", -- cgit