From 86d2a44bf85e8b29546a56207b0b0ed39f18a3c0 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 18 Jun 2009 05:33:20 +0000 Subject: libglusterfs: Chain newly allocated fdentries. Signed-off-by: Anand V. Avati --- libglusterfs/src/fd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs') 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: -- cgit