mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
Closes #1062
Fix cases in the c_getf_* functions where we were retrieving a key DBT instead of a val. git-svn-id: file:///svn/tokudb@5454 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
5fa2c451c5
commit
234f2649d4
1 changed files with 3 additions and 3 deletions
|
@ -1886,7 +1886,7 @@ static int toku_c_getf_next(DBC *c, u_int32_t flag, void(*f)(DBT const *key, DBT
|
|||
if (do_locking) {
|
||||
|
||||
DBT *prevkey = found ? brt_cursor_peek_prev_key(c->i->c) : brt_cursor_peek_current_key(c->i->c);
|
||||
DBT *prevval = found ? brt_cursor_peek_prev_val(c->i->c) : brt_cursor_peek_current_key(c->i->c);
|
||||
DBT *prevval = found ? brt_cursor_peek_prev_val(c->i->c) : brt_cursor_peek_current_val(c->i->c);
|
||||
|
||||
DB_TXN *txn_anc = toku_txn_ancestor(c->i->txn);
|
||||
r = toku_txn_add_lt(txn_anc, lt);
|
||||
|
@ -1931,7 +1931,7 @@ static int toku_c_getf_prev(DBC *c, u_int32_t flag, void(*f)(DBT const *key, DBT
|
|||
if (do_locking) {
|
||||
|
||||
DBT *prevkey = found ? brt_cursor_peek_prev_key(c->i->c) : brt_cursor_peek_current_key(c->i->c);
|
||||
DBT *prevval = found ? brt_cursor_peek_prev_val(c->i->c) : brt_cursor_peek_current_key(c->i->c);
|
||||
DBT *prevval = found ? brt_cursor_peek_prev_val(c->i->c) : brt_cursor_peek_current_val(c->i->c);
|
||||
|
||||
DB_TXN *txn_anc = toku_txn_ancestor(c->i->txn);
|
||||
r = toku_txn_add_lt(txn_anc, lt);
|
||||
|
@ -1971,7 +1971,7 @@ static int toku_c_getf_next_dup(DBC *c, u_int32_t flag, void(*f)(DBT const *key,
|
|||
if (do_locking) {
|
||||
|
||||
DBT *prevkey = found ? brt_cursor_peek_prev_key(c->i->c) : brt_cursor_peek_current_key(c->i->c);
|
||||
DBT *prevval = found ? brt_cursor_peek_prev_val(c->i->c) : brt_cursor_peek_current_key(c->i->c);
|
||||
DBT *prevval = found ? brt_cursor_peek_prev_val(c->i->c) : brt_cursor_peek_current_val(c->i->c);
|
||||
|
||||
DB_TXN *txn_anc = toku_txn_ancestor(c->i->txn);
|
||||
r = toku_txn_add_lt(txn_anc, lt);
|
||||
|
|
Loading…
Add table
Reference in a new issue