path: root/libglusterfs/
diff options
authorNiels de Vos <>2013-03-15 10:34:45 +0100
committerVijay Bellur <>2013-08-02 02:14:09 -0700
commitc95db3046c672473611d9ac0ab6cd93bd8211347 (patch)
tree072bfcd45c8c86fec44fce6bd443532c6184300f /libglusterfs/
parent423aa0d57a031e865374d18cdcc489273317d785 (diff)
store: Add (un)locking functionality
Some configuration/cache files (like the NFS rmtab) can be stored on a GlusterFS volume and be used by multiple storage servers. This requires suitable locking for the gf_store_handle_t structure. Introduce gf_store_lock() and gf_store_unlock() for this purpose. The gf_store_locked_local() function can be used to check if the gf_store_handle_t has been locked by the current process. This change also includes an unrelated correction where a FILE* was getting leaked. Krishnan Parthasarathi identified this while reviewing the new locking functionality. Change-Id: I431b7510801841d4bad64480b4bb99d87e2ad347 BUG: 904065 Signed-off-by: Niels de Vos <> Reviewed-on: Reviewed-by: Rajesh Joseph <> Tested-by: Gluster Build System <> Reviewed-by: Vijay Bellur <>
Diffstat (limited to 'libglusterfs/')
0 files changed, 0 insertions, 0 deletions