db_am.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996, 1997, 1998
* Sleepycat Software. All rights reserved.
*
* @(#)db_am.h 10.15 (Sleepycat) 11/22/98
*/
#ifndef _DB_AM_H
#define _DB_AM_H
#define DB_ISBIG 0x01
#define DB_ADD_DUP 0x10
#define DB_REM_DUP 0x20
#define DB_ADD_BIG 0x30
#define DB_REM_BIG 0x40
#define DB_SPLITOLD 0x50
#define DB_SPLITNEW 0x60
#define DB_ADD_PAGE 0x70
#define DB_REM_PAGE 0x80
/*
* Standard initialization and shutdown macros for all recovery functions.
*
* Requires the following local variables:
*
* DB *file_dbp, *mdbp;
* DB_MPOOLFILE *mpf;
* int ret;
*/
goto out; \
if ((ret = \
if (ret == DB_DELETED) { \
ret = 0; \
goto done; \
} \
goto out; \
} \
goto out; \
goto out; \
}
#define REC_CLOSE { \
return (ret); \
}
/*
* No-op versions of the same macros.
*/
#define REC_NOOP_INTRO(func) { \
return (ret); \
}
#define REC_NOOP_CLOSE { \
return (ret); \
}
/*
* Standard debugging macro for all recovery functions.
*/
#ifdef DEBUG_RECOVER
#else
#endif
#include "db_auto.h"
#include "db_ext.h"
#endif