summaryrefslogtreecommitdiffstats
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-30 14:36:28 -0700
commit86d2a44bf85e8b29546a56207b0b0ed39f18a3c0 (patch)
tree22b029abe67c03d9f6e2ab34a01aa2c9c3d1e903
parente6cb66be802b7e3099a000418a0b3a292bcf00a4 (diff)
libglusterfs: Chain newly allocated fdentries.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
-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: