[Bugs] [Bug 1184366] make sure pthread keys are used only once

bugzilla at redhat.com bugzilla at redhat.com
Wed Jan 28 14:06:24 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1184366



--- Comment #8 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9430 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit 88136b53f59e3b81aacc28df18bda575da35b02d
Author: Vijay Bellur <vbellur at redhat.com>
Date:   Sun Jan 11 23:13:08 2015 +0530

    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 at redhat.com>
    Signed-off-by: Raghavendra Bhat <raghavendra at redhat.com>
    Reviewed-on: http://review.gluster.org/9430
    Tested-by: Gluster Build System <jenkins at build.gluster.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=D7uWmAtPDY&a=cc_unsubscribe


More information about the Bugs mailing list