diff options
author | Avra Sengupta <asengupt@redhat.com> | 2013-11-19 04:23:22 +0000 |
---|---|---|
committer | Avra Sengupta <asengupt@redhat.com> | 2013-11-20 01:51:20 +0000 |
commit | de39983493ce747c6696f1523db59bb67865b22a (patch) | |
tree | b857d759e345b9328df55562ae538a257fb4adf3 /xlators | |
parent | 5af3c6e4b3d88690bf1d812534488fcc97625efa (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>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-mgmt.c | 8 |
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 624e3a393..1faafc5d1 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(); |