summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/dict.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-12-15 00:37:22 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-27 20:50:40 -0800
commit8ba141e5e5d6616f05f69bb958b4a879198c1de5 (patch)
tree1b128b0ae82957af64f71922bc8949d79728cdc3 /libglusterfs/src/dict.c
parent70f29baa5d45f765903d1547c57640e578836e7f (diff)
libglusterfs: data_copy needs to init the lock
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2226 (data_copy needs to init the data lock) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2226
Diffstat (limited to 'libglusterfs/src/dict.c')
-rw-r--r--libglusterfs/src/dict.c1
1 files changed, 1 insertions, 0 deletions
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: