Commit 924257b9 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel
Browse files

#4525 DRD_IGNORE status variables refs[t:4525]

git-svn-id: file:///svn/toku/tokudb@40150 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1338a2dd
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -45,7 +45,6 @@ toku_brt_hot_status_init(void)
    STATUS_INIT(BRT_HOT_NUM_COMPLETED,        UINT64, "operations successfully completed");
    STATUS_INIT(BRT_HOT_NUM_ABORTED,          UINT64, "operations aborted");
    STATUS_INIT(BRT_HOT_MAX_ROOT_FLUSH_COUNT, UINT64, "max number of flushes from root ever required to optimize a tree");
    DRD_IGNORE_VAR(STATUS_VALUE(BRT_HOT_MAX_ROOT_FLUSH_COUNT));

    hot_status.initialized = true;
}
@@ -364,4 +363,12 @@ toku_brt_hot_optimize(BRT brt,
    return r;
}

void __attribute__((__constructor__)) toku_hot_drd_ignore(void);
void
toku_hot_drd_ignore(void) {
    // incremented only while lock is held, but read by engine status asynchronously.
    DRD_IGNORE_VAR(hot_status);
}


#undef STATUS_VALUE
+14 −2
Original line number Diff line number Diff line
@@ -4018,8 +4018,20 @@ toku_cleaner_thread (void *cachetable_v)
void __attribute__((__constructor__)) toku_cachetable_drd_ignore(void);
void
toku_cachetable_drd_ignore(void) {
    // incremented only while lock is held, but read by engine status asynchronously.
    DRD_IGNORE_VAR(STATUS_VALUE(CT_EVICTIONS));
    DRD_IGNORE_VAR(cachetable_hit);
    DRD_IGNORE_VAR(cachetable_miss);
    DRD_IGNORE_VAR(cachetable_misstime);
    DRD_IGNORE_VAR(cachetable_waittime);
    DRD_IGNORE_VAR(cachetable_wait_reading);
    DRD_IGNORE_VAR(cachetable_wait_writing);
    DRD_IGNORE_VAR(cachetable_wait_checkpoint);
    DRD_IGNORE_VAR(cachetable_puts);
    DRD_IGNORE_VAR(cachetable_prefetches);
    DRD_IGNORE_VAR(cachetable_maybe_get_and_pins);
    DRD_IGNORE_VAR(cachetable_maybe_get_and_pin_hits);
    DRD_IGNORE_VAR(cachetable_evictions);
    DRD_IGNORE_VAR(cleaner_executions);
    DRD_IGNORE_VAR(ct_status);
}

#undef STATUS_VALUE