mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
add DB_CURRENT. addresses #48
git-svn-id: file:///svn/tokudb@893 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
81981d003b
commit
b83bcb1be6
1 changed files with 7 additions and 0 deletions
|
@ -2863,6 +2863,13 @@ int toku_brt_cursor_get (BRT_CURSOR cursor, DBT *kbt, DBT *vbt, int flags, TOKUT
|
|||
r = toku_pma_cursor_get_current(cursor->pmacurs, kbt, vbt); if (r!=0) goto died0;
|
||||
if (r == 0) assert_cursor_path(cursor);
|
||||
break;
|
||||
case DB_CURRENT:
|
||||
if (cursor->path_len<=0) {
|
||||
r = EINVAL; goto died0;
|
||||
}
|
||||
r=toku_pma_cursor_get_current(cursor->pmacurs, kbt, vbt); if (r!=0) goto died0;
|
||||
if (r == 0) assert_cursor_path(cursor);
|
||||
break;
|
||||
case DB_SET:
|
||||
r = unpin_cursor(cursor);
|
||||
assert(r == 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue