Commit 6a544feb authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel
Browse files

[t:4556], fix bug

git-svn-id: file:///svn/toku/tokudb@40168 c7de825b-a66e-492c-adef-691d508d4ae1
parent 32d7741a
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -5519,13 +5519,6 @@ toku_brt_search (BRT brt, brt_search_t *search, BRT_GET_CALLBACK_FUNCTION getf,
    //  - brt_search_node is called, assuming that the node and its relevant partition are in memory.
    //
    struct brtnode_fetch_extra bfe;
    BRTNODE node = NULL;
    {
        toku_brtheader_grab_treelock(brt->h);

        u_int32_t fullhash;
        CACHEKEY *rootp = toku_calculate_root_offset_pointer(brt->h, &fullhash);

    fill_bfe_for_subset_read(
        &bfe,
        brt->h,
@@ -5536,6 +5529,11 @@ toku_brt_search (BRT brt, brt_search_t *search, BRT_GET_CALLBACK_FUNCTION getf,
        brtcursor->right_is_pos_infty,
        brtcursor->disable_prefetching
        );
    BRTNODE node = NULL;
    {
        toku_brtheader_grab_treelock(brt->h);
        u_int32_t fullhash;
        CACHEKEY *rootp = toku_calculate_root_offset_pointer(brt->h, &fullhash);
        toku_pin_brtnode_off_client_thread(
            brt->h, 
            *rootp,