diff --git a/newbrt/brt-flusher.c b/newbrt/brt-flusher.c index d28702edcff..bcd8baad8cc 100644 --- a/newbrt/brt-flusher.c +++ b/newbrt/brt-flusher.c @@ -10,14 +10,12 @@ 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_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; } @@ -75,8 +73,7 @@ find_heaviest_child(BRTNODE node) } static void -update_flush_status(BRTNODE child, int cascades) -{ +update_flush_status(BRTNODE child, int cascades) { brt_flusher_status.flush_total++; if (cascades > 0) { brt_flusher_status.flush_cascades++; @@ -1843,3 +1840,10 @@ flush_node_on_background_thread(BRT brt, BRTNODE parent) } } } + +#include +void __attribute__((__constructor__)) toku_brt_flusher_drd_ignore(void); +void +toku_brt_flusher_drd_ignore(void) { + DRD_IGNORE_VAR(brt_flusher_status); +}