1999-02-06 00:23:03 +08:00
|
|
|
/* txn.h - Header for TP support functions of the bdb2 backend */
|
|
|
|
|
|
|
|
#ifndef _BDB2_TXN_H_
|
|
|
|
#define _BDB2_TXN_H_
|
|
|
|
|
|
|
|
#include "portable.h"
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <dirent.h>
|
|
|
|
|
1999-02-17 02:07:19 +08:00
|
|
|
#include <ac/errno.h>
|
1999-02-06 00:23:03 +08:00
|
|
|
#include <ac/signal.h>
|
1999-02-17 02:07:19 +08:00
|
|
|
#include <ac/socket.h>
|
|
|
|
#include <ac/string.h>
|
|
|
|
#include <ac/time.h>
|
|
|
|
#include <ac/unistd.h>
|
1999-02-06 00:23:03 +08:00
|
|
|
|
|
|
|
#include "ldapconfig.h"
|
|
|
|
#include "slap.h"
|
|
|
|
#include "back-bdb2.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define BDB2_TXN_CHKP_MAX_CNT 20 /* checkpoint every
|
|
|
|
20 transactions */
|
|
|
|
#define BDB2_TXN_CHKP_MAX_TIME 600 /* checkpoint after
|
|
|
|
600 seconds */
|
|
|
|
|
|
|
|
|
|
|
|
char *bdb2i_fixed_filenames[] = {
|
|
|
|
|
|
|
|
"dn", "dn2id", "id2entry", "id2children", "objectclass"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _BDB2_TXN_H_ */
|
|
|
|
|