summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client-handshake.c
diff options
context:
space:
mode:
authorSamikshan Bairagya <samikshan@gmail.com>2016-12-28 20:33:54 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-01-12 10:20:59 -0800
commit2e5383266869c13ee27ceaee5b24b686e2415df4 (patch)
tree3603d5288b805ef252edf4d311bb78b9f137e494 /xlators/protocol/client/src/client-handshake.c
parent84271e12efb783bfc83133329b0fd18aba729c84 (diff)
glusterd: Add info on op-version for clients in vol status output
Currently the `gluster volume status <VOLNAME|all> clients` command gives us the following information on clients: 1. Brick name 2. Client count for each brick 3. hostname:port for each client 4. Bytes read and written for each client There is no information regarding op-version for each client. This patch adds that to the output. Change-Id: Ib2ece93ab00c234162bb92b7c67a7d86f3350a8d BUG: 1409078 Signed-off-by: Samikshan Bairagya <samikshan@gmail.com> Reviewed-on: http://review.gluster.org/16303 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/protocol/client/src/client-handshake.c')
-rw-r--r--xlators/protocol/client/src/client-handshake.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c
index adccd8d..354b916 100644
--- a/xlators/protocol/client/src/client-handshake.c
+++ b/xlators/protocol/client/src/client-handshake.c
@@ -1387,6 +1387,12 @@ client_setvolume (xlator_t *this, struct rpc_clnt *rpc)
"msg", client_get_lk_ver (conf));
}
+ ret = dict_set_int32 (options, "opversion", GD_OP_VERSION_MAX);
+ if (ret < 0) {
+ gf_msg (this->name, GF_LOG_ERROR, 0, PC_MSG_DICT_SET_FAILED,
+ "Failed to set client opversion in handshake message");
+ }
+
ret = dict_serialized_length (options);
if (ret < 0) {
gf_msg (this->name, GF_LOG_ERROR, 0, PC_MSG_DICT_ERROR,