summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syncop.h
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2015-02-19 01:24:29 +0530
committerVijay Bellur <vbellur@redhat.com>2015-03-02 20:30:53 -0800
commit84e6eac265c87be5e436f3e7a41f40dc2d9c65c5 (patch)
treea083dbfd4c7883ffe5b32122452d0f8c7e29bd2a /libglusterfs/src/syncop.h
parent5e12c658d6c2dc92fd336b745036641f054b3a40 (diff)
syncop: Add the code to destroy the synenv processors and
syncenv structures Change-Id: I28020eb2fc08d886cd7c05ff96daf7ebb4264ffe BUG: 1093594 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/9693 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src/syncop.h')
-rw-r--r--libglusterfs/src/syncop.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h
index e3b51018307..ec0d8a917e8 100644
--- a/libglusterfs/src/syncop.h
+++ b/libglusterfs/src/syncop.h
@@ -108,6 +108,9 @@ struct syncenv {
pthread_cond_t cond;
size_t stacksize;
+
+ int destroy; /* FLAG to mark syncenv is in destroy mode
+ so that no more synctasks are accepted*/
};