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

DbEnv::set_paniccall

						#include <db_cxx.h>
						int
						DbEnv::set_paniccall(void (*)(DbEnv *, int));
					

Description

Errors can occur in the Berkeley DB library where the only solution is to shut down the application and run recovery (for example, if Berkeley DB is unable to write log records to disk because there is insufficient disk space). In these cases, when the C++ error model has been configured so that the individual Berkeley DB methods return error codes (see DbException for more information), the value DB_RUNRECOVERY is returned by Berkeley DB methods.

In these cases, it is also often simpler to shut down the application when such errors occur rather than attempting to gracefully return up the stack. The DbEnv::set_paniccall method is used to ...

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