summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-op-sm.c
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-09-02 04:02:52 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-02 03:28:42 -0700
commitfabe6417986dedd92adc2ac5d8d71cfd4dd918da (patch)
tree4c515d2c449fc6f5535033ac18047f0c66d7ff49 /xlators/mgmt/glusterd/src/glusterd-op-sm.c
parentea86a09143c5c59349ca82ddcbc2178a84cccde7 (diff)
mgmt/glusterd: support for GET_NEXT volume info
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1255 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1255
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 59dae198c6a..b5cd26b8f6e 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -2936,6 +2936,10 @@ glusterd_op_txn_complete ()
int32_t ret = -1;
glusterd_conf_t *priv = NULL;
int32_t op = -1;
+ int32_t op_ret = 0;
+ int32_t op_errno = 0;
+ int32_t cli_op = 0;
+ rpcsvc_request_t *req = NULL;
priv = THIS->private;
GF_ASSERT (priv);
@@ -2950,8 +2954,11 @@ glusterd_op_txn_complete ()
gf_log ("glusterd", GF_LOG_NORMAL, "Cleared local lock");
- ret = glusterd_op_send_cli_response (opinfo.cli_op, opinfo.op_ret,
- opinfo.op_errno, opinfo.req);
+ op_ret = opinfo.op_ret;
+ op_errno = opinfo.op_errno;
+ cli_op = opinfo.cli_op;
+ req = opinfo.req;
+
opinfo.op_ret = 0;
opinfo.op_errno = 0;
@@ -2968,6 +2975,8 @@ glusterd_op_txn_complete ()
out:
pthread_mutex_unlock (&opinfo.lock);
+ ret = glusterd_op_send_cli_response (cli_op, op_ret,
+ op_errno, req);
gf_log ("glusterd", GF_LOG_NORMAL, "Returning %d", ret);
return ret;
}