Commit 8e61a2a6 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4366 get test_4015.drdrun to pass refs[t:4366]

git-svn-id: file:///svn/toku/tokudb@38590 c7de825b-a66e-492c-adef-691d508d4ae1
parent ec164465
...@@ -10,14 +10,12 @@ ...@@ -10,14 +10,12 @@
static BRT_FLUSHER_STATUS_S brt_flusher_status; static BRT_FLUSHER_STATUS_S brt_flusher_status;
void toku_brt_flusher_status_init(void) void toku_brt_flusher_status_init(void) {
{
brt_flusher_status.cleaner_min_buffer_size = UINT64_MAX; brt_flusher_status.cleaner_min_buffer_size = UINT64_MAX;
brt_flusher_status.cleaner_min_buffer_workdone = UINT64_MAX; brt_flusher_status.cleaner_min_buffer_workdone = UINT64_MAX;
} }
void toku_brt_flusher_get_status(BRT_FLUSHER_STATUS status) void toku_brt_flusher_get_status(BRT_FLUSHER_STATUS status) {
{
*status = brt_flusher_status; *status = brt_flusher_status;
} }
...@@ -75,8 +73,7 @@ find_heaviest_child(BRTNODE node) ...@@ -75,8 +73,7 @@ find_heaviest_child(BRTNODE node)
} }
static void static void
update_flush_status(BRTNODE child, int cascades) update_flush_status(BRTNODE child, int cascades) {
{
brt_flusher_status.flush_total++; brt_flusher_status.flush_total++;
if (cascades > 0) { if (cascades > 0) {
brt_flusher_status.flush_cascades++; brt_flusher_status.flush_cascades++;
...@@ -1843,3 +1840,10 @@ flush_node_on_background_thread(BRT brt, BRTNODE parent) ...@@ -1843,3 +1840,10 @@ flush_node_on_background_thread(BRT brt, BRTNODE parent)
} }
} }
} }
#include <valgrind/drd.h>
void __attribute__((__constructor__)) toku_brt_flusher_drd_ignore(void);
void
toku_brt_flusher_drd_ignore(void) {
DRD_IGNORE_VAR(brt_flusher_status);
}
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