DB_MPOOLFILE->get API Ref

#include <db.h>

int DB_MPOOLFILE->get(DB_MPOOLFILE *mpf, db_pgno_t *pgnoaddr, DB_TXN * txnid, u_int32_t flags, void **pagep);


Description: DB_MPOOLFILE->get

The DB_MPOOLFILE->get method returns pages from the cache.

All pages returned by DB_MPOOLFILE->get will be retained (that is, pinned), in the pool until a subsequent call to DB_MPOOLFILE->put.

The returned page is size_t type aligned.

Fully or partially created pages have all their bytes set to a nul byte, unless the DB_MPOOLFILE->set_clear_len method was called to specify other behavior before the file was opened.

The DB_MPOOLFILE->get method will return DB_PAGE_NOTFOUND if the requested page does not exist and DB_MPOOL_CREATE was not set. Unless otherwise specified, the DB_MPOOLFILE->get method returns a non-zero error value on failure and 0 on success.

Parameters
flags pagep pgnoaddr txnid

Errors

The DB_MPOOLFILE->get method may fail and return one of the following non-zero errors:


EACCES

EAGAIN

EINVAL

DB_LOCK_DEADLOCK

ENOMEM


Class DB_ENV, DB_MPOOLFILE
See Also Memory Pools and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.