Commit b2637ec2 authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

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

git-svn-id: file:///svn/toku/tokudb@38597 c7de825b-a66e-492c-adef-691d508d4ae1
parent fe693b1e
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment