diff options
author | Pranith K <pranithk@gluster.com> | 2010-12-15 00:37:22 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-12-27 20:50:40 -0800 |
commit | 8ba141e5e5d6616f05f69bb958b4a879198c1de5 (patch) | |
tree | 1b128b0ae82957af64f71922bc8949d79728cdc3 /libglusterfs/src | |
parent | 70f29baa5d45f765903d1547c57640e578836e7f (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')
-rw-r--r-- | libglusterfs/src/dict.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |