glusterfsd: is_mgmt_rpc_reconnect should not be char but gf_boolean_t

Change-Id: I35c4dc040ebb5e926c7f54d823d1c81b1228bd4f
BUG: 763046
Signed-off-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-on: http://review.gluster.org/5345
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
Harshavardhana 2013-07-18 20:52:36 -07:00 committed by Vijay Bellur
parent 5fbee7cdad
commit 333872c8ad

View File

@ -37,7 +37,7 @@
#include "syncop.h"
#include "xlator.h"
static char is_mgmt_rpc_reconnect;
static gf_boolean_t is_mgmt_rpc_reconnect = _gf_false;
int glusterfs_mgmt_pmap_signin (glusterfs_ctx_t *ctx);
int glusterfs_volfile_fetch (glusterfs_ctx_t *ctx);
@ -1618,7 +1618,7 @@ mgmt_getspec_cbk (struct rpc_req *req, struct iovec *iov, int count,
memcpy (oldvolfile, rsp.spec, size);
if (!is_mgmt_rpc_reconnect) {
glusterfs_mgmt_pmap_signin (ctx);
is_mgmt_rpc_reconnect = 1;
is_mgmt_rpc_reconnect = _gf_true;
}
out: