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(+) diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index bbd14fc863c..b5da61144d3 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