diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-06-09 05:08:59 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-06-11 07:51:27 -0700 |
commit | e7e6144a7688b35255ef5d69b060bd90e319679f (patch) | |
tree | 903b1a062916088a55e8d820a6131a9f8758d941 /libglusterfs/src/globals.h | |
parent | f7ca417394aeb5a8c2144e3b2ae6493ef172b32d (diff) |
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 <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src/globals.h')
-rw-r--r-- | libglusterfs/src/globals.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h index f4d252dd9b5..2f284ca9b14 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); |