1 /* txn.h - Header for TP support functions of the bdb2 backend */
12 #include <ac/dirent.h>
14 #include <ac/signal.h>
15 #include <ac/socket.h>
16 #include <ac/string.h>
18 #include <ac/unistd.h>
21 #include "back-bdb2.h"
25 /* the DB environment for the backend */
29 /* variables for transaction support */
33 u_int32_t txn_max_pending_log;
34 u_int32_t txn_max_pending_time;
36 ldap_pvt_thread_mutex_t txn_dirty_mutex;
38 /* defaults for checkpointing */
39 #define BDB2_TXN_CHKP_MAX_LOG 2000 /* checkpoint every 2MB lock file
40 (approx. 20 ADD TXNs) */
41 #define BDB2_TXN_CHKP_MAX_TIME 5 /* checkpoint after 5 minutes */
44 /* the name of the file and the record number of the NEXTID datum */
45 #define NEXTID_NAME "NEXTID"
46 #define NEXTID_RECNO (db_recno_t) 1
50 #endif /* _BDB2_TXN_H_ */