summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-inode-write.c
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2015-01-11 23:13:08 +0530
committerVijay Bellur <vbellur@redhat.com>2015-01-28 06:06:19 -0800
commit88136b53f59e3b81aacc28df18bda575da35b02d (patch)
treef420c5cd9b0a3515ae2cd4df9e255ebec9e138c9 /xlators/cluster/ec/src/ec-inode-write.c
parentc8a6904396142b832ec31c37f43f44b139d24e1f (diff)
libglusterfs: Avoid initializing per process globals more than once.
gfapi consumers can invoke glusters_globals_init() multiple times through glfs_new(). This will result in re-initialization of already inited variables and non deterministic behavior. To avoid this, a new function gf_globals_init_once() has been added. The invocation of this function is guarded through pthread_once(), thereby ensuring single initialization of per process globals. Change-Id: I0ecde02ee49e0c7379c2eb0f1c879d89774ec82f BUG: 1184366 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/9430 Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-inode-write.c')
0 files changed, 0 insertions, 0 deletions