Commit ca330365 authored by Zardosht Kasheff's avatar Zardosht Kasheff

addresses #938

fixed instance of retrieving a DBT that was a key instead of a val

git-svn-id: file:///svn/tokudb@4669 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2b29f61e
......@@ -1469,7 +1469,7 @@ static int toku_c_get_noassociate(DBC * c, DBT * key, DBT * val, u_int32_t flag)
BOOL found = r_cursor_op==0;
r = toku_c_get_post_lock(&g, found, key, val,
found ? brt_cursor_peek_prev_key(c->i->c) : brt_cursor_peek_current_key(c->i->c),
found ? brt_cursor_peek_prev_val(c->i->c) : brt_cursor_peek_current_key(c->i->c));
found ? brt_cursor_peek_prev_val(c->i->c) : brt_cursor_peek_current_val(c->i->c));
if (r!=0) {
if (g.cursor_is_write && r_cursor_op==0) brt_cursor_restore_state_from_prev(c->i->c);
goto cleanup;
......
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