1 /* txn.h - Header for TP support functions of the bdb2 backend */
13 #include <ac/signal.h>
14 #include <ac/socket.h>
15 #include <ac/string.h>
17 #include <ac/unistd.h>
19 #include "ldapconfig.h"
21 #include "back-bdb2.h"
25 /* variables for transaction support */
29 u_int32_t txn_max_pending_log;
30 u_int32_t txn_max_pending_time;
32 ldap_pvt_thread_mutex_t txn_dirty_mutex;
34 /* defaults for checkpointing */
35 #define BDB2_TXN_CHKP_MAX_LOG 2000 /* checkpoint every 2MB lock file
36 (approx. 20 ADD TXNs) */
37 #define BDB2_TXN_CHKP_MAX_TIME 5 /* checkpoint after 5 minutes */
40 /* the name of the file and the record number of the NEXTID datum */
41 #define NEXTID_NAME "NEXTID"
42 #define NEXTID_RECNO (db_recno_t) 1
45 /* default DB files */
46 char *bdb2i_fixed_filenames[] = {
48 "dn", "dn2id", "id2entry", "id2children", "objectclass"
53 #endif /* _BDB2_TXN_H_ */