[t:4362] Make locked_mo and locked_cs volatile. Refs #4362.

git-svn-id: file:///svn/toku/tokudb@38597 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Barry Perlman 2013-04-17 00:00:04 -04:00 committed by Yoni Fogel
parent fe693b1e55
commit b2637ec273

View file

@ -68,8 +68,8 @@ static void (*ydb_lock)(void) = NULL;
static void (*ydb_unlock)(void) = NULL;
static BOOL initialized = FALSE; // sanity check
static BOOL locked_mo = FALSE; // true when the multi_operation write lock is held (by checkpoint)
static BOOL locked_cs = FALSE; // true when the checkpoint_safe write lock is held (by checkpoint)
static volatile BOOL locked_mo = FALSE; // true when the multi_operation write lock is held (by checkpoint)
static volatile BOOL locked_cs = FALSE; // true when the checkpoint_safe write lock is held (by checkpoint)
// Note following static functions are called from checkpoint internal logic only,