diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2018-04-23 21:04:58 +0530 |
---|---|---|
committer | Pranith Kumar K <pkarampu@redhat.com> | 2018-04-23 21:24:31 +0530 |
commit | 93464ffd6dcbe2a2f91c0e35f933f814f523e9be (patch) | |
tree | 815ee9db505cd8dd5fd81652dfe8981f94ebc1b3 /libglusterfs/src/syncop.h | |
parent | afadc4d6f4cd52651c2849bc8337fc66ce8c72e6 (diff) |
libglusterfs/syncop: Handle barrier_{init/destroy} in error cases
BUG: 1568521
updates: bz#1568521
Change-Id: I53e60cfcaa7f8edfa5eca47307fa99f10ee64505
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src/syncop.h')
-rw-r--r-- | libglusterfs/src/syncop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h index 682191f0243..367204d05b7 100644 --- a/libglusterfs/src/syncop.h +++ b/libglusterfs/src/syncop.h @@ -134,6 +134,7 @@ typedef struct synclock synclock_t; struct syncbarrier { + gf_boolean_t initialized; /*Set on successful initialization*/ pthread_mutex_t guard; /* guard the remaining members, pair @cond */ pthread_cond_t cond; /* waiting non-synctasks */ struct list_head waitq; /* waiting synctasks */ |