summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-03-12 13:00:45 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-12 05:27:33 -0700
commitc8e7ec5e24613d8a20cd06d9e1b70e9386a889c4 (patch)
treed99233f4659811fedbad7b1a0045b8d9a2b6ef5e
parentafae9366d220d79fb8b0b1ab96f0e95d25dc4a90 (diff)
protocol/client: remove unused variables from 'priv/conf'
'last_sent', and 'last_recieved' variables were not used anymore after having RPC layer. Hence removed it from the code. Change-Id: I1ba74d47f909406ebde43476ccfed724e6c7e77f Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 801721 Reviewed-on: http://review.gluster.com/2916 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--xlators/protocol/client/src/client.c2
-rw-r--r--xlators/protocol/client/src/client.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c
index 3567dedbd1b..d01848f0a70 100644
--- a/xlators/protocol/client/src/client.c
+++ b/xlators/protocol/client/src/client.c
@@ -2498,8 +2498,6 @@ client_priv_dump (xlator_t *this)
}
gf_proc_dump_write("connecting", "%d", conf->connecting);
- gf_proc_dump_write("last_sent", "%s", ctime(&conf->last_sent.tv_sec));
- gf_proc_dump_write("last_received", "%s", ctime(&conf->last_received.tv_sec));
if (conf->rpc) {
gf_proc_dump_write("total_bytes_read", "%"PRIu64,
diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h
index 7203556f58e..050a9b014ac 100644
--- a/xlators/protocol/client/src/client.h
+++ b/xlators/protocol/client/src/client.h
@@ -73,8 +73,6 @@ typedef struct clnt_conf {
pthread_mutex_t lock;
int connecting;
int connected;
- struct timeval last_sent;
- struct timeval last_received;
rpc_clnt_prog_t *fops;
rpc_clnt_prog_t *mgmt;