Commit cc6b0919 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1497 Temporarily disable brt_cursor_(maybe_get_and_pin|unpin)_leaf

for performance reasons (till we have multiple main threads)

git-svn-id: file:///svn/toku/tokudb@9615 c7de825b-a66e-492c-adef-691d508d4ae1
parent 94fb9d6f
......@@ -3803,6 +3803,12 @@ brt_cursor_shortcut (BRT_CURSOR cursor, int direction, u_int32_t limit, BRT_GET_
return r;
}
//TODO: #1485 once we have multiple main threads, restore this code, analyze performance.
#ifndef TOKU_MULTIPLE_MAIN_THREADS
#define TOKU_MULTIPLE_MAIN_THREADS 0
#endif
#if TOKU_MULTIPLE_MAIN_THREADS
static int
brt_cursor_maybe_get_and_pin_leaf(BRT_CURSOR brtcursor, BRTNODE* leafp) {
void * nodep = NULL;
......@@ -3824,6 +3830,16 @@ brt_cursor_unpin_leaf(BRT_CURSOR brtcursor, BRTNODE leaf) {
int r = toku_unpin_brtnode(brtcursor->brt, leaf);
return r;
}
#else
static int
brt_cursor_maybe_get_and_pin_leaf(BRT_CURSOR UU(brtcursor), BRTNODE* UU(leafp)) {
return 0;
}
static int
brt_cursor_unpin_leaf(BRT_CURSOR UU(brtcursor), BRTNODE UU(leaf)) {
return 0;
}
#endif
static int
......
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