diff options
Diffstat (limited to 'xlators/protocol/client/src/client-handshake.c')
| -rw-r--r-- | xlators/protocol/client/src/client-handshake.c | 6 | 
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 adccd8d4e51..354b9167810 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,  | 
