mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
get the bound pma
git-svn-id: file:///svn/tokudb@158 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
f206871b8e
commit
361c348315
2 changed files with 12 additions and 0 deletions
|
@ -370,6 +370,11 @@ int pma_cursor (PMA pma, PMA_CURSOR *cursp) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int pma_cursor_get_pma(PMA_CURSOR c, PMA *pmap) {
|
||||
*pmap = c->pma;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pma_cursor_set_position_last (PMA_CURSOR c)
|
||||
{
|
||||
PMA pma = c->pma;
|
||||
|
|
|
@ -71,6 +71,13 @@ int pma_bulk_insert(PMA pma, DBT *keys, DBT *vals, int n_newpairs);
|
|||
int pma_cursor (PMA, PMA_CURSOR *);
|
||||
int pma_cursor_free (PMA_CURSOR*);
|
||||
|
||||
/*
|
||||
* get the pma that a pma cursor is bound to
|
||||
*
|
||||
* c - the pma cursor
|
||||
* pma - the location that the bound pma is returned
|
||||
*/
|
||||
int pma_cursor_get_pma(PMA_CURSOR c, PMA *pma);
|
||||
int pma_cursor_set_position_last (PMA_CURSOR c);
|
||||
int pma_cursor_set_position_first (PMA_CURSOR c);
|
||||
int pma_cursor_set_position_next (PMA_CURSOR c); /* Requires the cursor is init'd. Returns DB_NOTFOUND if we fall off the end. */
|
||||
|
|
Loading…
Add table
Reference in a new issue