summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-06-25 16:11:44 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-29 09:59:12 -0700
commit66224718ab57238e16b30d8b461c380d64df237c (patch)
tree10378539c11985cef53ba1121ab18d52c903a9db /xlators/protocol/client
parentdc321571317b911faa31eed8b3bd4ce396963179 (diff)
version check between client/server made more specific to protocol only.
This patch is a step towards giving compatibility between the versions of GlusterFS. Now onwards, the protocol-version won't depend on release versions. In general, multiple glusterfs versions can have common protocol-version. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/protocol/client')
-rw-r--r--xlators/protocol/client/src/client-protocol.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c
index 261027648..096713687 100644
--- a/xlators/protocol/client/src/client-protocol.c
+++ b/xlators/protocol/client/src/client-protocol.c
@@ -6125,11 +6125,11 @@ protocol_client_handshake (xlator_t *this, transport_t *trans)
char *process_uuid_xl;
options = this->options;
- ret = dict_set_str (options, "version", PACKAGE_VERSION);
+ ret = dict_set_str (options, "protocol-version", GF_PROTOCOL_VERSION);
if (ret < 0) {
gf_log (this->name, GF_LOG_DEBUG,
- "failed to set version(%s) in options dictionary",
- PACKAGE_VERSION);
+ "failed to set protocol version(%s) in handshake msg",
+ GF_PROTOCOL_VERSION);
}
asprintf (&process_uuid_xl, "%s-%s", this->ctx->process_uuid,
@@ -6138,8 +6138,8 @@ protocol_client_handshake (xlator_t *this, transport_t *trans)
process_uuid_xl);
if (ret < 0) {
gf_log (this->name, GF_LOG_DEBUG,
- "failed to set process-uuid(%s) in options dictionary",
- PACKAGE_VERSION);
+ "failed to set process-uuid(%s) in handshake msg",
+ process_uuid_xl);
}
if (this->ctx->cmd_args.volfile_server) {