diff options
author | Raghavendra G <raghavendra@zresearch.com> | 2009-05-15 03:55:20 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-05-16 16:40:18 +0530 |
commit | 9669c70c901474dc21ef08e49478b5f5dead8f64 (patch) | |
tree | 9040bceccf4c3aaec5966655900f7fac11de3646 /libglusterfsclient | |
parent | dec2674685da30d6cef157748bcf52454ec97208 (diff) |
dict.c: Add dict_allocate_and_serialize
- this procedure atomically allocates a buffer and serializes dict into it.
- this procedure helps avoid memory corruptions due to race conditions where
in new members are added into dict between allocating a buffer for
serializing and actually serializing buffer into it.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient')
0 files changed, 0 insertions, 0 deletions