2008-12-11 17:35:26 +00:00
|
|
|
%% -------------------------------------------------------------------
|
2009-06-23 19:22:11 +00:00
|
|
|
%% @doc
|
2008-12-11 17:35:26 +00:00
|
|
|
%% bdberl: Constants used by the bdberl port driver.
|
2009-06-23 19:22:11 +00:00
|
|
|
%%
|
|
|
|
%% @copyright 2008-9 The Hive http://www.thehive.com/
|
|
|
|
%% @author Dave "dizzyd" Smith <dizzyd@dizzyd.com>
|
|
|
|
%% @author Phil Toland <phil.toland@gmail.com>
|
2009-06-23 20:27:37 +00:00
|
|
|
%% @author Jon Meredith <jon@jonmeredith.com>
|
2009-06-23 19:22:11 +00:00
|
|
|
%% @end
|
|
|
|
%%
|
|
|
|
%% Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
%% of this software and associated documentation files (the "Software"), to deal
|
|
|
|
%% in the Software without restriction, including without limitation the rights
|
|
|
|
%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
%% copies of the Software, and to permit persons to whom the Software is
|
|
|
|
%% furnished to do so, subject to the following conditions:
|
|
|
|
%%
|
|
|
|
%% The above copyright notice and this permission notice shall be included in
|
|
|
|
%% all copies or substantial portions of the Software.
|
|
|
|
%%
|
|
|
|
%% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
%% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
%% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
%% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
%% THE SOFTWARE.
|
2008-12-11 17:35:26 +00:00
|
|
|
%%
|
|
|
|
%% -------------------------------------------------------------------
|
|
|
|
|
2008-12-15 18:25:03 +00:00
|
|
|
-define(CMD_NONE, 0).
|
|
|
|
-define(CMD_OPEN_DB, 1).
|
|
|
|
-define(CMD_CLOSE_DB, 2).
|
|
|
|
-define(CMD_TXN_BEGIN, 3).
|
|
|
|
-define(CMD_TXN_COMMIT, 4).
|
|
|
|
-define(CMD_TXN_ABORT, 5).
|
|
|
|
-define(CMD_GET, 6).
|
|
|
|
-define(CMD_PUT, 7).
|
2009-02-16 22:57:48 +00:00
|
|
|
-define(CMD_GETINFO, 8).
|
2008-12-15 18:25:03 +00:00
|
|
|
-define(CMD_CURSOR_OPEN, 9).
|
|
|
|
-define(CMD_CURSOR_CURR, 10).
|
|
|
|
-define(CMD_CURSOR_NEXT, 11).
|
|
|
|
-define(CMD_CURSOR_PREV, 12).
|
|
|
|
-define(CMD_CURSOR_CLOSE, 13).
|
2008-12-15 18:47:38 +00:00
|
|
|
-define(CMD_PUT_COMMIT, 14).
|
2008-12-17 20:07:36 +00:00
|
|
|
-define(CMD_REMOVE_DB, 15).
|
2009-02-02 21:51:47 +00:00
|
|
|
-define(CMD_TRUNCATE, 16).
|
2009-04-16 13:07:54 +00:00
|
|
|
-define(CMD_REGISTER_LOGGER, 17).
|
2009-05-27 20:03:11 +00:00
|
|
|
-define(CMD_DB_STAT, 18).
|
|
|
|
-define(CMD_DB_STAT_PRINT, 19).
|
|
|
|
-define(CMD_ENV_STAT_PRINT, 20).
|
2009-05-27 21:02:58 +00:00
|
|
|
-define(CMD_LOCK_STAT, 21).
|
|
|
|
-define(CMD_LOCK_STAT_PRINT, 22).
|
2009-05-27 21:25:50 +00:00
|
|
|
-define(CMD_LOG_STAT, 23).
|
|
|
|
-define(CMD_LOG_STAT_PRINT, 24).
|
2009-05-27 22:49:18 +00:00
|
|
|
-define(CMD_MEMP_STAT, 25).
|
|
|
|
-define(CMD_MEMP_STAT_PRINT, 26).
|
|
|
|
-define(CMD_MUTEX_STAT, 27).
|
|
|
|
-define(CMD_MUTEX_STAT_PRINT,28).
|
2009-05-28 18:05:52 +00:00
|
|
|
-define(CMD_TXN_STAT, 29).
|
|
|
|
-define(CMD_TXN_STAT_PRINT, 30).
|
2009-05-29 18:13:19 +00:00
|
|
|
-define(CMD_DATA_DIRS_INFO, 31).
|
|
|
|
-define(CMD_LOG_DIR_INFO, 32).
|
2009-06-10 20:18:26 +00:00
|
|
|
-define(CMD_DRIVER_INFO, 33).
|
2008-12-11 17:35:26 +00:00
|
|
|
|
|
|
|
-define(DB_TYPE_BTREE, 1).
|
|
|
|
-define(DB_TYPE_HASH, 2).
|
2011-07-17 19:55:48 +00:00
|
|
|
-define(DB_TYPE_RECNO, 3).
|
|
|
|
-define(DB_TYPE_QUEUE, 4).
|
2009-05-29 13:42:18 +00:00
|
|
|
-define(DB_TYPE_UNKNOWN, 5).
|
2008-12-11 17:35:26 +00:00
|
|
|
|
2008-12-11 21:18:10 +00:00
|
|
|
-define(SYSP_CACHESIZE_GET, 1).
|
2009-02-16 22:57:48 +00:00
|
|
|
-define(SYSP_TXN_TIMEOUT_GET, 2).
|
|
|
|
-define(SYSP_DATA_DIR_GET, 3).
|
2009-05-29 18:13:19 +00:00
|
|
|
-define(SYSP_LOG_DIR_GET, 4).
|
2008-12-11 21:18:10 +00:00
|
|
|
|
2008-12-11 17:35:26 +00:00
|
|
|
-define(STATUS_OK, 0).
|
|
|
|
-define(STATUS_ERROR, 1).
|
|
|
|
|
|
|
|
-define(ERROR_NONE, 0).
|
|
|
|
-define(ERROR_MAX_DBS, -29000). % System can not open any more databases
|
|
|
|
-define(ERROR_ASYNC_PENDING, -29001). % Async operation already pending on this port
|
|
|
|
-define(ERROR_INVALID_DBREF, -29002). % DbRef not currently opened by this port
|
|
|
|
-define(ERROR_TXN_OPEN, -29003). % Transaction already active on this port
|
|
|
|
-define(ERROR_NO_TXN, -29004). % No transaction open on this port
|
2008-12-15 18:25:03 +00:00
|
|
|
-define(ERROR_CURSOR_OPEN, -29005). % Cursor already active on this port
|
|
|
|
-define(ERROR_NO_CURSOR, -29006). % No cursor open on this port
|
2008-12-17 20:07:36 +00:00
|
|
|
-define(ERROR_DB_ACTIVE, -29007). % Database is currently active; operation requires otherwise
|
2009-05-27 20:03:11 +00:00
|
|
|
-define(ERROR_INVALID_CMD, -29008). % Invalid command
|
|
|
|
-define(ERROR_INVALID_DB_TYPE,-29009). % Invalid database type
|
2011-07-18 15:39:14 +00:00
|
|
|
-define(ERROR_INVALID_VALUE, -29010). % Invalid CRC-32 on value
|
2008-12-11 17:35:26 +00:00
|
|
|
|
2009-02-20 15:47:45 +00:00
|
|
|
%% DB (user visible) error return codes.
|
2011-07-17 19:55:48 +00:00
|
|
|
-define(DB_BUFFER_SMALL, -30999). % User memory too small for return.
|
|
|
|
-define(DB_DONOTINDEX, -30998). % "Null" return from 2ndary callbk.
|
|
|
|
-define(DB_FOREIGN_CONFLICT, -30997). % A foreign db constraint triggered.
|
|
|
|
-define(DB_KEYEMPTY, -30996). % Key/data deleted or never created.
|
|
|
|
-define(DB_KEYEXIST, -30995). % The key/data pair already exists.
|
|
|
|
-define(DB_LOCK_DEADLOCK, -30994). % Deadlock.
|
|
|
|
-define(DB_LOCK_NOTGRANTED, -30993). % Lock unavailable.
|
|
|
|
-define(DB_LOG_BUFFER_FULL, -30992). % In-memory log buffer full.
|
|
|
|
-define(DB_LOG_VERIFY_BAD, -30991). % Log verification failed.
|
|
|
|
-define(DB_NOSERVER, -30990). % Server panic return.
|
|
|
|
-define(DB_NOSERVER_HOME, -30989). % Bad home sent to server.
|
|
|
|
-define(DB_NOSERVER_ID, -30988). % Bad ID sent to server.
|
|
|
|
-define(DB_NOTFOUND, -30987). % Key/data pair not found (EOF).
|
|
|
|
-define(DB_OLD_VERSION, -30986). % Out-of-date version.
|
|
|
|
-define(DB_PAGE_NOTFOUND, -30985). % Requested page not found.
|
|
|
|
-define(DB_REP_DUPMASTER, -30984). % There are two masters.
|
|
|
|
-define(DB_REP_HANDLE_DEAD, -30983). % Rolled back a commit.
|
|
|
|
-define(DB_REP_HOLDELECTION, -30982). % Time to hold an election.
|
|
|
|
-define(DB_REP_IGNORE, -30981). % This msg should be ignored.
|
|
|
|
-define(DB_REP_ISPERM, -30980). % Cached not written perm written.
|
|
|
|
-define(DB_REP_JOIN_FAILURE, -30979). % Unable to join replication group.
|
|
|
|
-define(DB_REP_LEASE_EXPIRED, -30978). % Master lease has expired.
|
|
|
|
-define(DB_REP_LOCKOUT, -30977). % API/Replication lockout now.
|
|
|
|
-define(DB_REP_NEWSITE, -30976). % New site entered system.
|
|
|
|
-define(DB_REP_NOTPERM, -30975). % Permanent log record not written.
|
|
|
|
-define(DB_REP_UNAVAIL, -30974). % Site cannot currently be reached.
|
|
|
|
-define(DB_RUNRECOVERY, -30973). % Panic return.
|
|
|
|
-define(DB_SECONDARY_BAD, -30972). % Secondary index corrupt.
|
|
|
|
-define(DB_TIMEOUT, -30971). % Timed out on read consistency.
|
|
|
|
-define(DB_VERIFY_BAD, -30970). % Verify failed; bad format.
|
|
|
|
-define(DB_VERSION_MISMATCH, -30969). % Environment version mismatch.
|
2008-12-11 17:35:26 +00:00
|
|
|
|
|
|
|
%% DB API flags
|
2011-07-17 19:55:48 +00:00
|
|
|
-define(DB_AGGRESSIVE, 16#00000001).
|
|
|
|
-define(DB_ARCH_ABS, 16#00000001).
|
|
|
|
-define(DB_ARCH_DATA, 16#00000002).
|
|
|
|
-define(DB_ARCH_LOG, 16#00000004).
|
|
|
|
-define(DB_ARCH_REMOVE, 16#00000008).
|
|
|
|
-define(DB_AUTO_COMMIT, 16#00000100).
|
|
|
|
-define(DB_CDB_ALLDB, 16#00000040).
|
|
|
|
-define(DB_CHKSUM, 16#00000008).
|
|
|
|
-define(DB_CKP_INTERNAL, 16#00000002).
|
|
|
|
-define(DB_CREATE, 16#00000001).
|
|
|
|
-define(DB_CURSOR_BULK, 16#00000001).
|
|
|
|
-define(DB_CURSOR_TRANSIENT, 16#00000004).
|
|
|
|
-define(DB_CXX_NO_EXCEPTIONS, 16#00000002).
|
|
|
|
-define(DB_DATABASE_LOCKING, 16#00000080).
|
|
|
|
-define(DB_DIRECT, 16#00000010).
|
|
|
|
-define(DB_DIRECT_DB, 16#00000200).
|
|
|
|
-define(DB_DSYNC_DB, 16#00000400).
|
|
|
|
-define(DB_DUP, 16#00000010).
|
|
|
|
-define(DB_DUPSORT, 16#00000004).
|
|
|
|
-define(DB_DURABLE_UNKNOWN, 16#00000020).
|
|
|
|
-define(DB_ENCRYPT, 16#00000001).
|
|
|
|
-define(DB_ENCRYPT_AES, 16#00000001).
|
|
|
|
-define(DB_EXCL, 16#00000040).
|
|
|
|
-define(DB_EXTENT, 16#00000040).
|
|
|
|
-define(DB_FAILCHK, 16#00000020).
|
|
|
|
-define(DB_FAST_STAT, 16#00000001).
|
|
|
|
-define(DB_FCNTL_LOCKING, 16#00000800).
|
|
|
|
-define(DB_FLUSH, 16#00000001).
|
|
|
|
-define(DB_FORCE, 16#00000001).
|
|
|
|
-define(DB_FORCESYNC, 16#00000001).
|
|
|
|
-define(DB_FOREIGN_ABORT, 16#00000001).
|
|
|
|
-define(DB_FOREIGN_CASCADE, 16#00000002).
|
|
|
|
-define(DB_FOREIGN_NULLIFY, 16#00000004).
|
|
|
|
-define(DB_FREELIST_ONLY, 16#00000001).
|
|
|
|
-define(DB_FREE_SPACE, 16#00000002).
|
|
|
|
-define(DB_HOTBACKUP_IN_PROGRESS, 16#00000800).
|
|
|
|
-define(DB_IGNORE_LEASE, 16#00001000).
|
|
|
|
-define(DB_IMMUTABLE_KEY, 16#00000002).
|
|
|
|
-define(DB_INIT_CDB, 16#00000040).
|
|
|
|
-define(DB_INIT_LOCK, 16#00000080).
|
|
|
|
-define(DB_INIT_LOG, 16#00000100).
|
|
|
|
-define(DB_INIT_MPOOL, 16#00000200).
|
|
|
|
-define(DB_INIT_REP, 16#00000400).
|
|
|
|
-define(DB_INIT_TXN, 16#00000800).
|
|
|
|
-define(DB_INORDER, 16#00000020).
|
|
|
|
-define(DB_JOIN_NOSORT, 16#00000001).
|
|
|
|
-define(DB_LOCKDOWN, 16#00001000).
|
|
|
|
-define(DB_LOCK_CHECK, 16#00000001).
|
|
|
|
-define(DB_LOCK_NOWAIT, 16#00000002).
|
|
|
|
-define(DB_LOCK_RECORD, 16#00000004).
|
|
|
|
-define(DB_LOCK_SET_TIMEOUT, 16#00000008).
|
|
|
|
-define(DB_LOCK_SWITCH, 16#00000010).
|
|
|
|
-define(DB_LOCK_UPGRADE, 16#00000020).
|
|
|
|
-define(DB_LOG_AUTO_REMOVE, 16#00000001).
|
|
|
|
-define(DB_LOG_CHKPNT, 16#00000002).
|
|
|
|
-define(DB_LOG_COMMIT, 16#00000004).
|
|
|
|
-define(DB_LOG_DIRECT, 16#00000002).
|
|
|
|
-define(DB_LOG_DSYNC, 16#00000004).
|
|
|
|
-define(DB_LOG_IN_MEMORY, 16#00000008).
|
|
|
|
-define(DB_LOG_NOCOPY, 16#00000008).
|
|
|
|
-define(DB_LOG_NOT_DURABLE, 16#00000010).
|
|
|
|
-define(DB_LOG_NO_DATA, 16#00000004).
|
|
|
|
-define(DB_LOG_VERIFY_CAF, 16#00000001).
|
|
|
|
-define(DB_LOG_VERIFY_DBFILE, 16#00000002).
|
|
|
|
-define(DB_LOG_VERIFY_ERR, 16#00000004).
|
|
|
|
-define(DB_LOG_VERIFY_FORWARD, 16#00000008).
|
|
|
|
-define(DB_LOG_VERIFY_INTERR, 16#00000010).
|
|
|
|
-define(DB_LOG_VERIFY_PARTIAL, 16#00000020).
|
|
|
|
-define(DB_LOG_VERIFY_VERBOSE, 16#00000040).
|
|
|
|
-define(DB_LOG_VERIFY_WARNING, 16#00000080).
|
|
|
|
-define(DB_LOG_WRNOSYNC, 16#00000020).
|
|
|
|
-define(DB_LOG_ZERO, 16#00000010).
|
|
|
|
-define(DB_MPOOL_CREATE, 16#00000001).
|
|
|
|
-define(DB_MPOOL_DIRTY, 16#00000002).
|
|
|
|
-define(DB_MPOOL_DISCARD, 16#00000001).
|
|
|
|
-define(DB_MPOOL_EDIT, 16#00000004).
|
|
|
|
-define(DB_MPOOL_FREE, 16#00000008).
|
|
|
|
-define(DB_MPOOL_LAST, 16#00000010).
|
|
|
|
-define(DB_MPOOL_NEW, 16#00000020).
|
|
|
|
-define(DB_MPOOL_NOFILE, 16#00000001).
|
|
|
|
-define(DB_MPOOL_NOLOCK, 16#00000002).
|
|
|
|
-define(DB_MPOOL_TRY, 16#00000040).
|
|
|
|
-define(DB_MPOOL_UNLINK, 16#00000002).
|
|
|
|
-define(DB_MULTIPLE, 16#00000800).
|
|
|
|
-define(DB_MULTIPLE_KEY, 16#00004000).
|
|
|
|
-define(DB_MULTIVERSION, 16#00000004).
|
|
|
|
-define(DB_MUTEX_ALLOCATED, 16#00000001).
|
|
|
|
-define(DB_MUTEX_LOCKED, 16#00000002).
|
|
|
|
-define(DB_MUTEX_LOGICAL_LOCK, 16#00000004).
|
|
|
|
-define(DB_MUTEX_PROCESS_ONLY, 16#00000008).
|
|
|
|
-define(DB_MUTEX_SELF_BLOCK, 16#00000010).
|
|
|
|
-define(DB_MUTEX_SHARED, 16#00000020).
|
|
|
|
-define(DB_NOERROR, 16#00001000).
|
|
|
|
-define(DB_NOFLUSH, 16#00001000).
|
|
|
|
-define(DB_NOLOCKING, 16#00002000).
|
|
|
|
-define(DB_NOMMAP, 16#00000008).
|
|
|
|
-define(DB_NOORDERCHK, 16#00000002).
|
|
|
|
-define(DB_NOPANIC, 16#00004000).
|
|
|
|
-define(DB_NOSYNC, 16#00000001).
|
|
|
|
-define(DB_NO_AUTO_COMMIT, 16#00002000).
|
|
|
|
-define(DB_NO_CHECKPOINT, 16#00002000).
|
|
|
|
-define(DB_ODDFILESIZE, 16#00000080).
|
|
|
|
-define(DB_ORDERCHKONLY, 16#00000004).
|
|
|
|
-define(DB_OVERWRITE, 16#00008000).
|
|
|
|
-define(DB_PANIC_ENVIRONMENT, 16#00010000).
|
|
|
|
-define(DB_PRINTABLE, 16#00000008).
|
|
|
|
-define(DB_PRIVATE, 16#00004000).
|
|
|
|
-define(DB_PR_PAGE, 16#00000010).
|
|
|
|
-define(DB_PR_RECOVERYTEST, 16#00000020).
|
|
|
|
-define(DB_RDONLY, 16#00000400).
|
|
|
|
-define(DB_RDWRMASTER, 16#00004000).
|
|
|
|
-define(DB_READ_COMMITTED, 16#00000400).
|
|
|
|
-define(DB_READ_UNCOMMITTED, 16#00000200).
|
|
|
|
-define(DB_RECNUM, 16#00000040).
|
|
|
|
-define(DB_RECOVER, 16#00000002).
|
|
|
|
-define(DB_RECOVER_FATAL, 16#00008000).
|
|
|
|
-define(DB_REGION_INIT, 16#00020000).
|
|
|
|
-define(DB_REGISTER, 16#00010000).
|
|
|
|
-define(DB_RENUMBER, 16#00000080).
|
|
|
|
-define(DB_REPMGR_CONF_2SITE_STRICT, 16#00000001).
|
|
|
|
-define(DB_REPMGR_CONF_ELECTIONS, 16#00000002).
|
|
|
|
-define(DB_REPMGR_PEER, 16#00000001).
|
|
|
|
-define(DB_REP_ANYWHERE, 16#00000001).
|
|
|
|
-define(DB_REP_CLIENT, 16#00000001).
|
|
|
|
-define(DB_REP_CONF_AUTOINIT, 16#00000004).
|
|
|
|
-define(DB_REP_CONF_BULK, 16#00000008).
|
|
|
|
-define(DB_REP_CONF_DELAYCLIENT, 16#00000010).
|
|
|
|
-define(DB_REP_CONF_INMEM, 16#00000020).
|
|
|
|
-define(DB_REP_CONF_LEASE, 16#00000040).
|
|
|
|
-define(DB_REP_CONF_NOWAIT, 16#00000080).
|
|
|
|
-define(DB_REP_ELECTION, 16#00000004).
|
|
|
|
-define(DB_REP_MASTER, 16#00000002).
|
|
|
|
-define(DB_REP_NOBUFFER, 16#00000002).
|
|
|
|
-define(DB_REP_PERMANENT, 16#00000004).
|
|
|
|
-define(DB_REP_REREQUEST, 16#00000008).
|
|
|
|
-define(DB_REVSPLITOFF, 16#00000100).
|
|
|
|
-define(DB_RMW, 16#00002000).
|
|
|
|
-define(DB_SALVAGE, 16#00000040).
|
|
|
|
-define(DB_SA_SKIPFIRSTKEY, 16#00000080).
|
|
|
|
-define(DB_SA_UNKNOWNKEY, 16#00000100).
|
|
|
|
-define(DB_SEQ_DEC, 16#00000001).
|
|
|
|
-define(DB_SEQ_INC, 16#00000002).
|
|
|
|
-define(DB_SEQ_RANGE_SET, 16#00000004).
|
|
|
|
-define(DB_SEQ_WRAP, 16#00000008).
|
|
|
|
-define(DB_SEQ_WRAPPED, 16#00000010).
|
|
|
|
-define(DB_SET_LOCK_TIMEOUT, 16#00000001).
|
|
|
|
-define(DB_SET_REG_TIMEOUT, 16#00000004).
|
|
|
|
-define(DB_SET_TXN_NOW, 16#00000008).
|
|
|
|
-define(DB_SET_TXN_TIMEOUT, 16#00000002).
|
|
|
|
-define(DB_SHALLOW_DUP, 16#00000100).
|
|
|
|
-define(DB_SNAPSHOT, 16#00000200).
|
|
|
|
-define(DB_STAT_ALL, 16#00000004).
|
|
|
|
-define(DB_STAT_CLEAR, 16#00000001).
|
|
|
|
-define(DB_STAT_LOCK_CONF, 16#00000008).
|
|
|
|
-define(DB_STAT_LOCK_LOCKERS, 16#00000010).
|
|
|
|
-define(DB_STAT_LOCK_OBJECTS, 16#00000020).
|
|
|
|
-define(DB_STAT_LOCK_PARAMS, 16#00000040).
|
|
|
|
-define(DB_STAT_MEMP_HASH, 16#00000008).
|
|
|
|
-define(DB_STAT_MEMP_NOERROR, 16#00000010).
|
|
|
|
-define(DB_STAT_SUBSYSTEM, 16#00000002).
|
|
|
|
-define(DB_ST_DUPOK, 16#00000200).
|
|
|
|
-define(DB_ST_DUPSET, 16#00000400).
|
|
|
|
-define(DB_ST_DUPSORT, 16#00000800).
|
|
|
|
-define(DB_ST_IS_RECNO, 16#00001000).
|
|
|
|
-define(DB_ST_OVFL_LEAF, 16#00002000).
|
|
|
|
-define(DB_ST_RECNUM, 16#00004000).
|
|
|
|
-define(DB_ST_RELEN, 16#00008000).
|
|
|
|
-define(DB_ST_TOPLEVEL, 16#00010000).
|
|
|
|
-define(DB_SYSTEM_MEM, 16#00020000).
|
|
|
|
-define(DB_THREAD, 16#00000010).
|
|
|
|
-define(DB_TIME_NOTGRANTED, 16#00040000).
|
|
|
|
-define(DB_TRUNCATE, 16#00008000).
|
|
|
|
-define(DB_TXN_BULK, 16#00000008).
|
|
|
|
-define(DB_TXN_FAMILY, 16#00000040).
|
|
|
|
-define(DB_TXN_NOSYNC, 16#00000001).
|
|
|
|
-define(DB_TXN_NOT_DURABLE, 16#00000002).
|
|
|
|
-define(DB_TXN_NOWAIT, 16#00000002).
|
|
|
|
-define(DB_TXN_SNAPSHOT, 16#00000010).
|
|
|
|
-define(DB_TXN_SYNC, 16#00000004).
|
|
|
|
-define(DB_TXN_WAIT, 16#00000080).
|
|
|
|
-define(DB_TXN_WRITE_NOSYNC, 16#00000020).
|
|
|
|
-define(DB_UNREF, 16#00020000).
|
|
|
|
-define(DB_UPGRADE, 16#00000001).
|
|
|
|
-define(DB_USE_ENVIRON, 16#00000004).
|
|
|
|
-define(DB_USE_ENVIRON_ROOT, 16#00000008).
|
|
|
|
-define(DB_VERB_DEADLOCK, 16#00000001).
|
|
|
|
-define(DB_VERB_FILEOPS, 16#00000002).
|
|
|
|
-define(DB_VERB_FILEOPS_ALL, 16#00000004).
|
|
|
|
-define(DB_VERB_RECOVERY, 16#00000008).
|
|
|
|
-define(DB_VERB_REGISTER, 16#00000010).
|
|
|
|
-define(DB_VERB_REPLICATION, 16#00000020).
|
|
|
|
-define(DB_VERB_REPMGR_CONNFAIL, 16#00000040).
|
|
|
|
-define(DB_VERB_REPMGR_MISC, 16#00000080).
|
|
|
|
-define(DB_VERB_REP_ELECT, 16#00000100).
|
|
|
|
-define(DB_VERB_REP_LEASE, 16#00000200).
|
|
|
|
-define(DB_VERB_REP_MISC, 16#00000400).
|
|
|
|
-define(DB_VERB_REP_MSGS, 16#00000800).
|
|
|
|
-define(DB_VERB_REP_SYNC, 16#00001000).
|
|
|
|
-define(DB_VERB_REP_SYSTEM, 16#00002000).
|
|
|
|
-define(DB_VERB_REP_TEST, 16#00004000).
|
|
|
|
-define(DB_VERB_WAITSFOR, 16#00008000).
|
|
|
|
-define(DB_VERIFY, 16#00000002).
|
|
|
|
-define(DB_VERIFY_PARTITION, 16#00040000).
|
|
|
|
-define(DB_WRITECURSOR, 16#00000008).
|
|
|
|
-define(DB_WRITELOCK, 16#00000020).
|
|
|
|
-define(DB_WRITEOPEN, 16#00010000).
|
|
|
|
-define(DB_YIELDCPU, 16#00080000).
|
2008-12-11 17:35:26 +00:00
|
|
|
|
|
|
|
%% DB access method and cursor operation values. Each value is an operation
|
|
|
|
%% code to which additional bit flags are added.
|
2011-07-17 19:55:48 +00:00
|
|
|
-define(DB_AFTER, 1).
|
|
|
|
-define(DB_APPEND, 2).
|
|
|
|
-define(DB_BEFORE, 3).
|
|
|
|
-define(DB_CONSUME, 4).
|
|
|
|
-define(DB_CONSUME_WAIT, 5).
|
|
|
|
-define(DB_CURRENT, 6).
|
|
|
|
-define(DB_FIRST, 7).
|
|
|
|
-define(DB_GET_BOTH, 8).
|
|
|
|
-define(DB_GET_BOTHC, 9).
|
|
|
|
-define(DB_GET_BOTH_RANGE, 10).
|
|
|
|
-define(DB_GET_RECNO, 11).
|
|
|
|
-define(DB_JOIN_ITEM, 12).
|
|
|
|
-define(DB_KEYFIRST, 13).
|
|
|
|
-define(DB_KEYLAST, 14).
|
|
|
|
-define(DB_LAST, 15).
|
|
|
|
-define(DB_NEXT, 16).
|
|
|
|
-define(DB_NEXT_DUP, 17).
|
|
|
|
-define(DB_NEXT_NODUP, 18).
|
|
|
|
-define(DB_NODUPDATA, 19).
|
|
|
|
-define(DB_NOOVERWRITE, 20).
|
|
|
|
-define(DB_OVERWRITE_DUP, 21).
|
|
|
|
-define(DB_POSITION, 22).
|
|
|
|
-define(DB_PREV, 23).
|
|
|
|
-define(DB_PREV_DUP, 24).
|
|
|
|
-define(DB_PREV_NODUP, 25).
|
|
|
|
-define(DB_SET, 26).
|
|
|
|
-define(DB_SET_RANGE, 27).
|
|
|
|
-define(DB_SET_RECNO, 28).
|
|
|
|
-define(DB_UPDATE_SECONDARY, 29).
|
|
|
|
-define(DB_SET_LTE, 30).
|
|
|
|
-define(DB_GET_BOTH_LTE, 31).
|