protect remaining uses of prov_hash against concurrent access
commit80a978acd30fc420ce4d4139caa955d43ec04ac7
authorJim Meyering <meyering@redhat.com>
Thu, 20 Jan 2011 13:30:31 +0000 (20 14:30 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 8 Feb 2011 11:14:55 +0000 (8 12:14 +0100)
treeca726078a91700676b0e6af730df35a0e5972595
parente73b7221f26dc46b07575a18e207836eaed6d7e7
protect remaining uses of prov_hash against concurrent access

* setup.c (hash_get_prov_list): New function.
* setup.h: Declare it.
* replica.c (replicate, replicate_namespace_action): Use
hash_get_prov_list to get all provider pointers at once, and which
locks the hash table before accessing it.
With hash_get_first_prov and hash_get_next_prov that was not possible.
* setup.c (hash_get_first_prov, hash_get_next_prov): Remove functions.
* setup.h: Remove declarations.
replica.c
setup.c
setup.h