From e7e6144a7688b35255ef5d69b060bd90e319679f Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Tue, 9 Jun 2009 05:08:59 +0000 Subject: Functions to store a central log flag in TLS. The flag is set in TLS so that a re-entry into gf_central_log does not deadlock. Signed-off-by: Anand V. Avati --- libglusterfs/src/globals.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libglusterfs/src/globals.h') diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h index f4d252dd9..2f284ca9b 100644 --- a/libglusterfs/src/globals.h +++ b/libglusterfs/src/globals.h @@ -35,6 +35,11 @@ xlator_t **__glusterfs_this_location (); xlator_t *glusterfs_this_get (); int glusterfs_this_set (xlator_t *); +void glusterfs_central_log_flag_set (); +long glusterfs_central_log_flag_get (); +void glusterfs_central_log_flag_unset (); + + /* init */ int glusterfs_globals_init (void); -- cgit