From 8ba141e5e5d6616f05f69bb958b4a879198c1de5 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Wed, 15 Dec 2010 00:37:22 +0000 Subject: libglusterfs: data_copy needs to init the lock Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2226 (data_copy needs to init the data lock) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2226 --- libglusterfs/src/dict.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index bbd14fc86..b5da61144 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -189,6 +189,7 @@ data_copy (data_t *old) } } + LOCK_INIT (&newdata->lock); return newdata; err_out: -- cgit