summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/fd.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-06-18 05:33:20 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-18 13:08:04 -0700
commit617de1c718d4f082c8a8cf86c258284f5c918b2c (patch)
tree70f8b5e2af0047a51b281c3d7cdc8b938cd8ddd7 /libglusterfs/src/fd.c
parent804e34cc4955cf5f176e70381da08cc617b6f79b (diff)
libglusterfs: Chain newly allocated fdentries.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src/fd.c')
-rw-r--r--libglusterfs/src/fd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c
index cfebf1489..f67bdc828 100644
--- a/libglusterfs/src/fd.c
+++ b/libglusterfs/src/fd.c
@@ -170,6 +170,7 @@ __gf_fd_fdtable_get_all_fds (fdtable_t *fdtable, uint32_t *count)
fdentries = fdtable->fdentries;
fdtable->fdentries = calloc (fdtable->max_fds, sizeof (fdentry_t));
+ gf_fd_chain_fd_entries (fdtable->fdentries, 0, fdtable->max_fds);
*count = fdtable->max_fds;
out: