diff options
author | Raghavendra G <raghavendra@zresearch.com> | 2009-04-03 06:30:54 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-03 19:09:35 +0530 |
commit | 6eb419f1ca68f536a700e63c1521e428560a0d9d (patch) | |
tree | 571e5bb852d90b94ddab0bcc5a7deaf26630c2a0 /libglusterfs/src/fd.h | |
parent | d3d7245970189629937f6330a6d946f5fbb454af (diff) |
server-protocol - reimplement connection cleanup to happen in 2 phases
- first phase, which happens when POLLERR is received on transport,
releases all locks, flushes all open fds.
- second phase, which happens when both the transports of connection destroyed,
destroys the containers like lock table, fd table along with the connection.
- the first phase, clears up any references to transport held by translators
like posix-locks(in the form of blocked locks) paving way for the second phase.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfs/src/fd.h')
-rw-r--r-- | libglusterfs/src/fd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h index 0382ccdc218..2916a44812e 100644 --- a/libglusterfs/src/fd.h +++ b/libglusterfs/src/fd.h @@ -77,6 +77,9 @@ gf_fd_unused_get (fdtable_t *fdtable, fd_t *fdptr); int32_t gf_fd_unused_get2 (fdtable_t *fdtable, fd_t *fdptr, int32_t fd); +fd_t ** +gf_fd_fdtable_get_all_fds (fdtable_t *fdtable, uint32_t *count); + void gf_fd_fdtable_destroy (fdtable_t *fdtable); |