1 /* txn.h - Header for TP support functions of the bdb2 backend */
11 #include <ac/dirent.h>
13 #include <ac/signal.h>
14 #include <ac/socket.h>
15 #include <ac/string.h>
17 #include <ac/unistd.h>
19 #include "ldap_defaults.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
49 /* default DB files */
50 char *bdb2i_fixed_filenames[] = {
52 "dn", "dn2id", "id2entry", "id2children", "objectclass"
57 #endif /* _BDB2_TXN_H_ */