diff options
author | Rajesh <rajesh@gluster.com> | 2011-07-19 15:57:30 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-25 09:25:25 -0700 |
commit | 73eca3be5c5ccc71bbad934338c1ef58ed37c483 (patch) | |
tree | 39758ab32ba0781b17a64f2f8f10c1b5051c4197 /rpc/rpc-transport/socket/src/socket.h | |
parent | d35e17152720a074c15f54f5c3b8a400e456b19e (diff) |
rpc-transport/socket: avoid logging socket read fails
An option, transport.socket.read-fail-log was added in glusterd.
This can also be added to any translator which uses socket.c.
A gf_boolean_t flag(read_fail_log) is added in socket_private_t.
Using this, logging of socket read failures can be controlled.
The options is set to 'off' in glusterd.vol by default.
Change-Id: I85cf4afc1f534f5f51018449d5d84baef18fce23
BUG: 3156
Reviewed-on: http://review.gluster.com/22
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.h')
-rw-r--r-- | rpc/rpc-transport/socket/src/socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.h b/rpc/rpc-transport/socket/src/socket.h index 4acecab2a61..c52026cc829 100644 --- a/rpc/rpc-transport/socket/src/socket.h +++ b/rpc/rpc-transport/socket/src/socket.h @@ -193,6 +193,7 @@ typedef struct { int keepaliveidle; int keepaliveintvl; uint32_t backlog; + gf_boolean_t read_fail_log; } socket_private_t; |