summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-syncop.h
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-03-22 13:51:23 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-22 04:19:18 -0700
commit2db6b286d091346b4386fd6091eb22bd9d3ea7a0 (patch)
treeb0538a64baddcf123908d197d765cc35275806c7 /xlators/mgmt/glusterd/src/glusterd-syncop.h
parent1522ac5c15516156bb33f8d47b0c0e7de6cd411f (diff)
glusterd: fix bugs of syncop for operations
* free the stack created for synctask * use different key than 'operation' in dictionary as thats being used already by other glusterd operations * send proper frame to 'rpc_clnt_submit()' API, as it gets used internally * also make sure to destroy the above frame in all _cbk() * move everything specific to synctask into one file, so it is easy to maintain Change-Id: Ia1a4414fffec6f9e51700295947eea4a2104a8c2 Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 805802 Reviewed-on: http://review.gluster.com/3000 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishnan Parthasarathi <kp@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-syncop.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-syncop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.h b/xlators/mgmt/glusterd/src/glusterd-syncop.h
index ccaf794ea..44f983c29 100644
--- a/xlators/mgmt/glusterd/src/glusterd-syncop.h
+++ b/xlators/mgmt/glusterd/src/glusterd-syncop.h
@@ -23,6 +23,8 @@
#include "syncop.h"
+#define GD_SYNC_OPCODE_KEY "sync-mgmt-operation"
+
/* gd_syncop_* */
#define GD_SYNCOP(rpc, stb, cbk, req, prog, procnum, xdrproc) do { \
int ret = 0; \