get the bound pma

git-svn-id: file:///svn/tokudb@158 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2007-08-20 15:50:46 +00:00
parent f206871b8e
commit 361c348315
2 changed files with 12 additions and 0 deletions

View file

@ -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;

View file

@ -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. */