Commit 71075e0d authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4879], remove unneeded code

git-svn-id: file:///svn/toku/tokudb@43526 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8e65b617
...@@ -879,9 +879,6 @@ typedef enum { ...@@ -879,9 +879,6 @@ typedef enum {
BRT_STATUS_NUM_ROWS BRT_STATUS_NUM_ROWS
} brt_status_entry; } brt_status_entry;
void brt_begin_checkpoint(void);
void brt_end_checkpoint(void);
typedef struct { typedef struct {
bool initialized; bool initialized;
TOKU_ENGINE_STATUS_ROW_S status[BRT_STATUS_NUM_ROWS]; TOKU_ENGINE_STATUS_ROW_S status[BRT_STATUS_NUM_ROWS];
......
...@@ -1024,81 +1024,6 @@ BOOL toku_brtnode_pf_req_callback(void* brtnode_pv, void* read_extraargs) { ...@@ -1024,81 +1024,6 @@ BOOL toku_brtnode_pf_req_callback(void* brtnode_pv, void* read_extraargs) {
return retval; return retval;
} }
u_int64_t num_basements_decompressed;
u_int64_t num_buffers_decompressed;
u_int64_t num_basements_fetched;
u_int64_t num_buffers_fetched;
u_int64_t num_pivots_fetched;
void brt_begin_checkpoint(void) {
/*
u_int64_t old_num_basements_decompressed = num_basements_decompressed;
u_int64_t old_num_buffers_decompressed = num_buffers_decompressed;
u_int64_t old_num_basements_fetched = num_basements_fetched;
u_int64_t old_num_buffers_fetched = num_buffers_fetched;
u_int64_t old_num_pivots_fetched = num_pivots_fetched;
*/
num_basements_decompressed =
STATUS_VALUE(BRT_NUM_BASEMENTS_DECOMPRESSED_NORMAL) +
STATUS_VALUE(BRT_NUM_BASEMENTS_DECOMPRESSED_AGGRESSIVE) +
STATUS_VALUE(BRT_NUM_BASEMENTS_DECOMPRESSED_PREFETCH) +
STATUS_VALUE(BRT_NUM_BASEMENTS_DECOMPRESSED_WRITE);
num_buffers_decompressed =
STATUS_VALUE(BRT_NUM_MSG_BUFFER_DECOMPRESSED_NORMAL) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_DECOMPRESSED_AGGRESSIVE) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_DECOMPRESSED_PREFETCH) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_DECOMPRESSED_WRITE);
num_basements_fetched =
STATUS_VALUE(BRT_NUM_BASEMENTS_FETCHED_NORMAL) +
STATUS_VALUE(BRT_NUM_BASEMENTS_FETCHED_AGGRESSIVE) +
STATUS_VALUE(BRT_NUM_BASEMENTS_FETCHED_PREFETCH) +
STATUS_VALUE(BRT_NUM_BASEMENTS_FETCHED_WRITE);
num_buffers_fetched =
STATUS_VALUE(BRT_NUM_MSG_BUFFER_FETCHED_NORMAL) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_FETCHED_AGGRESSIVE) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_FETCHED_PREFETCH) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_FETCHED_WRITE);
num_pivots_fetched =
STATUS_VALUE(BRT_NUM_PIVOTS_FETCHED_QUERY) +
STATUS_VALUE(BRT_NUM_PIVOTS_FETCHED_PREFETCH) +
STATUS_VALUE(BRT_NUM_PIVOTS_FETCHED_WRITE);
}
void brt_end_checkpoint(void) {
num_basements_decompressed =
STATUS_VALUE(BRT_NUM_BASEMENTS_DECOMPRESSED_NORMAL) +
STATUS_VALUE(BRT_NUM_BASEMENTS_DECOMPRESSED_AGGRESSIVE) +
STATUS_VALUE(BRT_NUM_BASEMENTS_DECOMPRESSED_PREFETCH) +
STATUS_VALUE(BRT_NUM_BASEMENTS_DECOMPRESSED_WRITE);
num_buffers_decompressed =
STATUS_VALUE(BRT_NUM_MSG_BUFFER_DECOMPRESSED_NORMAL) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_DECOMPRESSED_AGGRESSIVE) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_DECOMPRESSED_PREFETCH) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_DECOMPRESSED_WRITE);
num_basements_fetched =
STATUS_VALUE(BRT_NUM_BASEMENTS_FETCHED_NORMAL) +
STATUS_VALUE(BRT_NUM_BASEMENTS_FETCHED_AGGRESSIVE) +
STATUS_VALUE(BRT_NUM_BASEMENTS_FETCHED_PREFETCH) +
STATUS_VALUE(BRT_NUM_BASEMENTS_FETCHED_WRITE);
num_buffers_fetched =
STATUS_VALUE(BRT_NUM_MSG_BUFFER_FETCHED_NORMAL) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_FETCHED_AGGRESSIVE) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_FETCHED_PREFETCH) +
STATUS_VALUE(BRT_NUM_MSG_BUFFER_FETCHED_WRITE);
num_pivots_fetched =
STATUS_VALUE(BRT_NUM_PIVOTS_FETCHED_QUERY) +
STATUS_VALUE(BRT_NUM_PIVOTS_FETCHED_PREFETCH) +
STATUS_VALUE(BRT_NUM_PIVOTS_FETCHED_WRITE);
}
static void static void
brt_status_update_partial_fetch_reason( brt_status_update_partial_fetch_reason(
struct brtnode_fetch_extra* UU(bfe), struct brtnode_fetch_extra* UU(bfe),
......
...@@ -3473,7 +3473,6 @@ toku_cachetable_begin_checkpoint (CACHETABLE ct, TOKULOGGER logger) { ...@@ -3473,7 +3473,6 @@ toku_cachetable_begin_checkpoint (CACHETABLE ct, TOKULOGGER logger) {
// written to disk before it can be modified.) // written to disk before it can be modified.)
{ {
brt_begin_checkpoint();
unsigned i; unsigned i;
cachetable_lock(ct); cachetable_lock(ct);
//Initialize accountability counters //Initialize accountability counters
...@@ -3801,8 +3800,6 @@ toku_cachetable_end_checkpoint(CACHETABLE ct, TOKULOGGER logger, ...@@ -3801,8 +3800,6 @@ toku_cachetable_end_checkpoint(CACHETABLE ct, TOKULOGGER logger,
} }
} }
brt_end_checkpoint();
panic: panic:
return retval; return retval;
} }
......
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