Commit 4cc64bdb authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

refs #5710 use a sync fetch and add on the tokutime status variables, not a...

refs #5710 use a sync fetch and add on the tokutime status variables, not a regular increment, since it is accessed by multiple threads


git-svn-id: file:///svn/toku/tokudb@50561 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1f00b8ac
......@@ -289,13 +289,13 @@ toku_ft_get_status(FT_STATUS s) {
*s = ft_status;
}
#define STATUS_INC(x, d) \
do { \
if (ft_status.status[x].type == PARCOUNT) { \
increment_partitioned_counter(ft_status.status[x].value.parcount, d); \
} else { \
ft_status.status[x].value.num += d; \
} \
#define STATUS_INC(x, d) \
do { \
if (ft_status.status[x].type == PARCOUNT) { \
increment_partitioned_counter(ft_status.status[x].value.parcount, d); \
} else { \
toku_sync_fetch_and_add(&ft_status.status[x].value.num, d); \
} \
} while (0)
bool is_entire_node_in_memory(FTNODE node) {
......
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