diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-12-02 07:29:06 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-12-02 07:29:06 +0000 |
commit | 83e43683acfde9d459f801ee1e38201a672ddce4 (patch) | |
tree | 19d84fb2bc0c730776a8066e00bde6b7f2f70ca4 /sys-libs/db/files | |
parent | Fix bug #114223, bad perms on /usr/include/db1. (diff) | |
download | historical-83e43683acfde9d459f801ee1e38201a672ddce4.tar.gz historical-83e43683acfde9d459f801ee1e38201a672ddce4.tar.bz2 historical-83e43683acfde9d459f801ee1e38201a672ddce4.zip |
Bug #113905, TXN support for DB-4.2, used for OpenLDAP data integrity.
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'sys-libs/db/files')
-rw-r--r-- | sys-libs/db/files/db-4.2.52_p2-TXN.patch | 68 | ||||
-rw-r--r-- | sys-libs/db/files/digest-db-4.2.52_p2-r1 | 3 |
2 files changed, 71 insertions, 0 deletions
diff --git a/sys-libs/db/files/db-4.2.52_p2-TXN.patch b/sys-libs/db/files/db-4.2.52_p2-TXN.patch new file mode 100644 index 000000000000..7ff8874c0ca8 --- /dev/null +++ b/sys-libs/db/files/db-4.2.52_p2-TXN.patch @@ -0,0 +1,68 @@ +This patch is intended to be applied to Berkeley DB 4.2.52 and, +if applied, will automatically be used by slapd(8) back-bdb/hdb. +Without this patch the BDB DB_LOG_AUTOREMOVE option will not work, +nor will db_archive allow any transaction log files to be removed +while slapd is running. + +The patch can be applied to the BDB source using patch(1) as follows + cd db-4.2.52 + patch -p0 < openldap-src/build/BerkeleyDB42.patch + +(modify directory paths as necessary), then recompile and reinstall +the BerkeleyDB 4.2 library, and then build and install OpenLDAP +Software. + +The patch should not be applied to Berkeley DB 4.3. + + +Index: dbinc/db.in +=================================================================== +RCS file: /var/CVSROOT/bdb42/dbinc/db.in,v +retrieving revision 1.1.1.1 +retrieving revision 1.2 +diff -u -r1.1.1.1 -r1.2 +--- dbinc/db.in 25 Nov 2003 21:58:02 -0000 1.1.1.1 ++++ dbinc/db.in 17 Jul 2004 16:07:23 -0000 1.2 +@@ -839,6 +839,7 @@ + #define TXN_NOWAIT 0x040 /* Do not wait on locks. */ + #define TXN_RESTORED 0x080 /* Transaction has been restored. */ + #define TXN_SYNC 0x100 /* Sync on prepare and commit. */ ++#define TXN_NOLOG 0x200 /* Do not log this transaction. */ + u_int32_t flags; + }; + +Index: txn/txn.c +=================================================================== +RCS file: /var/CVSROOT/bdb42/txn/txn.c,v +retrieving revision 1.1.1.2 +retrieving revision 1.2 +diff -u -r1.1.1.2 -r1.2 +--- txn/txn.c 17 Dec 2003 21:43:53 -0000 1.1.1.2 ++++ txn/txn.c 17 Jul 2004 16:07:27 -0000 1.2 +@@ -127,7 +127,7 @@ + if ((ret = __db_fchk(dbenv, + "txn_begin", flags, + DB_DIRTY_READ | DB_TXN_NOWAIT | +- DB_TXN_NOSYNC | DB_TXN_SYNC)) != 0) ++ DB_TXN_NOSYNC | DB_TXN_SYNC | DB_TXN_NOT_DURABLE)) != 0) + return (ret); + if ((ret = __db_fcchk(dbenv, + "txn_begin", flags, DB_TXN_NOSYNC, DB_TXN_SYNC)) != 0) +@@ -193,6 +193,8 @@ + F_SET(txn, TXN_SYNC); + if (LF_ISSET(DB_TXN_NOWAIT)) + F_SET(txn, TXN_NOWAIT); ++ if (LF_ISSET(DB_TXN_NOT_DURABLE)) ++ F_SET(txn, TXN_NOLOG); + + if ((ret = __txn_begin_int(txn, 0)) != 0) + goto err; +@@ -328,7 +330,7 @@ + * We should set this value when we write the first log record, not + * here. + */ +- if (DBENV_LOGGING(dbenv)) ++ if (DBENV_LOGGING(dbenv) && !F_ISSET(txn, TXN_NOLOG)) + __log_txn_lsn(dbenv, &begin_lsn, NULL, NULL); + else + ZERO_LSN(begin_lsn); diff --git a/sys-libs/db/files/digest-db-4.2.52_p2-r1 b/sys-libs/db/files/digest-db-4.2.52_p2-r1 new file mode 100644 index 000000000000..00d41e6281ca --- /dev/null +++ b/sys-libs/db/files/digest-db-4.2.52_p2-r1 @@ -0,0 +1,3 @@ +MD5 cbc77517c9278cdb47613ce8cb55779f db-4.2.52.tar.gz 4073147 +MD5 1227f5f9ff43d48b5b1759e113a1c2d7 patch.4.2.52.1 988 +MD5 3da7efd8d29919a9113e2f6f5166f5b7 patch.4.2.52.2 1433 |