mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
#4366 get test_4015.drdrun to pass refs[t:4366]
git-svn-id: file:///svn/toku/tokudb@38590 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
ec164465ee
commit
8e61a2a6c3
1 changed files with 10 additions and 6 deletions
|
@ -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 <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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue