From a52d2d704318a930b0a2eb6d92701499fa97e52e Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Thu, 22 Nov 2018 09:58:52 +0530 Subject: glusterd: perform store operation in cleanup lock All glusterd store operation and cleanup thread should work under a critical section to avoid any partial store write. Change-Id: I4f12e738f597a1f925c87ea2f42565dcf9ecdb9d Fixes: bz#1652430 Signed-off-by: Atin Mukherjee --- libglusterfs/src/glusterfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src/glusterfs.h') diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 8335d170bd1..4d5bac322fd 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -689,6 +689,7 @@ struct _glusterfs_ctx { char btbuf[GF_BACKTRACE_LEN]; pthread_mutex_t notify_lock; + pthread_mutex_t cleanup_lock; pthread_cond_t notify_cond; int notifying; -- cgit