summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2013-11-19 04:23:22 +0000
committerAvra Sengupta <asengupt@redhat.com>2013-11-20 01:51:20 +0000
commitde39983493ce747c6696f1523db59bb67865b22a (patch)
treeb857d759e345b9328df55562ae538a257fb4adf3
parent5af3c6e4b3d88690bf1d812534488fcc97625efa (diff)
glusterd/mgmt: Adding synctasked flag to initiate multiple volume locks.
Setting 'is_synctasked' as gf_true for glusterd_mgmt_v3_initiate_snap_phases() to initiate multiple volume locks. Change-Id: Ib225fbac42b5e9cf9f3af0083d33ec49a1b87964 Signed-off-by: Avra Sengupta <asengupt@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-mgmt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-mgmt.c
index 624e3a3..1faafc5 100644
--- a/xlators/mgmt/glusterd/src/glusterd-mgmt.c
+++ b/xlators/mgmt/glusterd/src/glusterd-mgmt.c
@@ -1457,6 +1457,14 @@ glusterd_mgmt_v3_initiate_snap_phases (rpcsvc_request_t *req, glusterd_op_t op,
goto out;
}
+ /* Marking the operation as complete synctasked */
+ ret = dict_set_int32 (dict, "is_synctasked", _gf_true);
+ if (ret) {
+ gf_log (this->name, GF_LOG_ERROR,
+ "Failed to set synctasked flag.");
+ goto out;
+ }
+
/* Use a copy at local unlock as cli response will be sent before
* the unlock and the volname in the dict might be removed */
tmp_dict = dict_new();