Skip to Content
Berkeley DB
book

Berkeley DB

by Sleepycat™ Software, Inc.
June 2001
Intermediate to advanced content levelIntermediate to advanced
688 pages
19h 18m
English
Sams
Content preview from Berkeley DB

DbMpoolFile::get

						#include <db_cxx.h>
						int
						DbMpoolFile::get(db_pgno_t *pgnoaddr, u_int32_t flags, void **pagep);
					

Description

The DbMpoolFile::get method copies a pointer to the page with the page number specified by pgnoaddr, from the source file in the DbMpoolFile, into the memory location referenced by pagep. If the page does not exist or cannot be retrieved, DbMpoolFile::get will fail.

Page numbers begin at 0; that is, the first page in the file is page number 0, not page number 1.

The returned page is size_t type aligned.

The flags value must be set to 0 or by bitwise inclusively OR’ing together one or more of the following values.

  • DB_MPOOL_CREATE If the specified page does not exist, create it. In this case, the pgin method, if specified, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Berkeley DB Book

The Berkeley DB Book

Himanshu Yadava
Linux Recipes for Oracle DBAs

Linux Recipes for Oracle DBAs

Darl Kuhn, Charles Kim, Bernard Lopuz
Fedora Linux

Fedora Linux

Chris Tyler

Publisher Resources

ISBN: 0735710643Purchase book