diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2018-11-23 10:37:40 +0100 |
---|---|---|
committer | Xavi Hernandez <xhernandez@redhat.com> | 2018-11-23 11:05:02 +0100 |
commit | a0fdc9202ca37dccab937e166c8ee696d049e08f (patch) | |
tree | fbad8b610ea4467de02f3ddc64a5c54465186fa8 /libglusterfs | |
parent | 7e691da0d37745e12d2f3e132545db82f05ea8f6 (diff) |
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 <xhernandez@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/glusterfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 93a01cab985..8335d170bd1 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -343,6 +343,8 @@ enum gf_internal_fop_indicator { #define GF_LOG_FLUSH_TIMEOUT_MAX_STR "300" #define GF_LOG_LOCALTIME_DEFAULT 0 +#define GF_NETWORK_TIMEOUT 42 + #define GF_BACKTRACE_LEN 4096 #define GF_BACKTRACE_FRAME_COUNT 7 |