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
...@@ -294,7 +294,7 @@ toku_ft_get_status(FT_STATUS s) { ...@@ -294,7 +294,7 @@ toku_ft_get_status(FT_STATUS s) {
if (ft_status.status[x].type == PARCOUNT) { \ if (ft_status.status[x].type == PARCOUNT) { \
increment_partitioned_counter(ft_status.status[x].value.parcount, d); \ increment_partitioned_counter(ft_status.status[x].value.parcount, d); \
} else { \ } else { \
ft_status.status[x].value.num += d; \ toku_sync_fetch_and_add(&ft_status.status[x].value.num, d); \
} \ } \
} while (0) } while (0)
......
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