]>
git.sur5r.net Git - openldap/log
Hallvard Furuseth [Sun, 26 Jul 2015 05:16:41 +0000 (07:16 +0200)]
Kill magic numbers for NUM_METAS, databases
Hallvard Furuseth [Sun, 19 Jul 2015 19:44:02 +0000 (21:44 +0200)]
ITS#7377 Catch mdb_put() to blocked/read-only txns
...early enough that txn state is left unchanged.
Hallvard Furuseth [Sun, 19 Jul 2015 19:43:10 +0000 (21:43 +0200)]
ITS#7377 Always notice env error on txn startup.
Move the check to the end of txn startup. Catches env
breakage which happens while the new txn waits for a lock.
Hallvard Furuseth [Sun, 19 Jul 2015 19:31:54 +0000 (21:31 +0200)]
Cleanup: Drop !mt_dbxs hack, use MDB_TXN_FINISHED
Hallvard Furuseth [Sun, 19 Jul 2015 19:31:25 +0000 (21:31 +0200)]
Catch most uses of finished/parent txns.
* Add MDB_TXN_FINISHED, MDB_TXN_HAS_CHILD, MDB_TXN_BLOCKED.
* Clear mt_numdbs in writers, for TXN_DBI_EXIST() to catch.
We already do in readers.
Hallvard Furuseth [Sun, 19 Jul 2015 19:30:12 +0000 (21:30 +0200)]
Move code into mdb_txn_end(). Was mdb_txn_reset0.
Side effects:
* Clean txn up a bit even before freeing it.
* Tweak DEBUG output at txn end. Add DEBUG after commit(writer).
Hallvard Furuseth [Sat, 11 Jul 2015 19:10:33 +0000 (21:10 +0200)]
Factor me_metas[toggle] out to mdb_env_pick_meta()
Hallvard Furuseth [Sat, 11 Jul 2015 19:09:36 +0000 (21:09 +0200)]
Simpler mdb_node_add()
Hallvard Furuseth [Sat, 4 Jul 2015 11:50:21 +0000 (13:50 +0200)]
More ESECT declarations
Hallvard Furuseth [Sat, 4 Jul 2015 11:49:12 +0000 (13:49 +0200)]
Add DB_USRVALID, to avoid 'dbi == FREE_DBI' tests
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:07 +0000 (13:48 +0200)]
Simpler flag/DBI checks and MDB_DEBUG
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:06 +0000 (13:48 +0200)]
Simpler mdb_drop().
MDB_DBI_CHANGED(,MAIN_DBI) is never true.
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:05 +0000 (13:48 +0200)]
Simpler mdb_node_shrink()
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:04 +0000 (13:48 +0200)]
Simpler mdb_txn_commit().
mt_env is always set.
Commit(mt_child) resets mt_child, so parent need not.
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:03 +0000 (13:48 +0200)]
mdb_txn_begin() cleanup
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:02 +0000 (13:48 +0200)]
mdb_drop0(): Omit scanning DUPSORT sub-DB leaves
Hallvard Furuseth [Sat, 4 Jul 2015 11:48:01 +0000 (13:48 +0200)]
Use mdb_cmp_long() for FREE_DBI
Hallvard Furuseth [Sat, 4 Jul 2015 11:42:41 +0000 (13:42 +0200)]
mdb_env_get_flags(): Hide internal flags
Hallvard Furuseth [Fri, 3 Jul 2015 21:07:30 +0000 (23:07 +0200)]
Support robust mutexes/locks. Add mdb_mutex_t etc.
Hallvard Furuseth [Fri, 3 Jul 2015 21:07:00 +0000 (23:07 +0200)]
Add MDB_USE_POSIX_MUTEX.
So far just to help aligning mdb.master and mdb.RE.
We'll make it an option later.
Hallvard Furuseth [Fri, 3 Jul 2015 21:02:12 +0000 (23:02 +0200)]
Whitespace (align with mdb.master)
leo@yuriev.ru [Fri, 3 Jul 2015 21:01:00 +0000 (23:01 +0200)]
Hallvard Furuseth [Wed, 20 May 2015 02:04:38 +0000 (04:04 +0200)]
Set/clear mp_pad, md_pad (MDB_DUPFIXED data size).
mdb_xcursor_init1(): md_pad is only used when MDB_DUPFIXED.
mdb_page_split(): Copy mp_pad too. Used by mdb_page_list().
Hallvard Furuseth [Wed, 8 Apr 2015 19:52:05 +0000 (21:52 +0200)]
Cleanup MDB_env.me_txn0.
More fallout from
4d02c741b120786df1b87ee9ed49c1d3f9bc7522 .
Hallvard Furuseth [Wed, 8 Apr 2015 19:51:50 +0000 (21:51 +0200)]
Copy some env flags to txn. Factor out flags.
Taken from mdb_txn_begin(,,MDB_NOMETASYNC, MDB_NOSYNC,,)
without adding those two flags yet, to align with mdb.master:
Part of
54516639acab87aad156230f8a799e9128d266fe (Renumber...)
+
8adee9464f65d1702b81a7c604f1a48baa7a0ad5 (Fix per-txn...).
leo@yuriev.ru [Sat, 17 Jan 2015 05:50:12 +0000 (06:50 +0100)]
ITS#7971 mdb_txn_renew0(): Fix new readers slots.
commit
9a8eb95674c7b500cfe5f44d03493ff76c9fc0c1 (mdb_txn_renew0)
plus
b2ab9910dd5f13ca2d92eeb4c39a90b922df8dfe (reader allocation)
from mdb.master.
David Barbour [Mon, 12 Jan 2015 22:00:30 +0000 (23:00 +0100)]
ITS#7994 Access to current transaction ID.
commit
b660491d3fa359325cb3615a276bba78f32e2075 (mdb_txn_id())
plus
c36c167cc49a59d4f40ae5fc259c013de601164e (fix prev commit)
from mdb.master.
Hallvard Furuseth [Mon, 8 Dec 2014 08:56:36 +0000 (09:56 +0100)]
Try to avoid an invalid datafile after failed init
Hallvard Furuseth [Wed, 3 Dec 2014 11:37:55 +0000 (12:37 +0100)]
For ITS#7789: Ensure mapsize >= pages in use.
Check new mapsizes against mm_last_pg. Move
mdb_env_init_meta0() so it can set mm_last_pg earlier.
Howard Chu [Sun, 25 Oct 2015 08:13:25 +0000 (08:13 +0000)]
ITS#8263, 8264, 7771, 8270
Ignacio Casal Quinteiro [Thu, 15 Oct 2015 20:22:25 +0000 (13:22 -0700)]
ITS#8270 win32: fix conversion error with MSVC
Howard Chu [Sun, 11 Oct 2015 23:08:41 +0000 (00:08 +0100)]
ITS#7771 fix cursor tracking on fake pages
node_del shifts nodes around, cursors pointing at fake pages
need to have their mc_pg[0] corrected.
Hallvard Furuseth [Sun, 11 Oct 2015 20:40:49 +0000 (21:40 +0100)]
ITS#8263 streamline prev patch
Howard Chu [Wed, 7 Oct 2015 05:30:58 +0000 (06:30 +0100)]
ITS#8263 fix cursor tracking in cursor_put
Howard Chu [Tue, 6 Oct 2015 06:57:14 +0000 (07:57 +0100)]
ITS#8264 fix cursor_del cursor tracking
Some destination fixups need to happen immediately after nodes
are moved, before rebalancing
Howard Chu [Fri, 2 Oct 2015 04:14:53 +0000 (05:14 +0100)]
ITS#8262 more
extended ops
Howard Chu [Fri, 2 Oct 2015 04:02:15 +0000 (05:02 +0100)]
ITS#8262 add ldap_build_*_req functions
Basic ops except abandon and unbind; since they get no reply
it's not important for the caller to know their msgID.
Howard Chu [Thu, 1 Oct 2015 22:55:10 +0000 (23:55 +0100)]
ITS#8261 change sl_mem_detach to sl_mem_setctx
Quanah Gibson-Mount [Mon, 5 Oct 2015 20:49:46 +0000 (15:49 -0500)]
Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_4
Howard Chu [Sun, 4 Oct 2015 02:02:04 +0000 (03:02 +0100)]
ITS#8258
Howard Chu [Sun, 4 Oct 2015 00:56:25 +0000 (01:56 +0100)]
ITS#8258 fix rebalance/split
The tree height can also increase during rebalance, not just shrink.
This can happen if update_key needs to split a parent branch page.
Howard Chu [Wed, 30 Sep 2015 17:11:20 +0000 (18:11 +0100)]
ITS#8259 fix usage ordering
Quanah Gibson-Mount [Tue, 29 Sep 2015 21:05:48 +0000 (16:05 -0500)]
Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_4
Howard Chu [Tue, 29 Sep 2015 16:31:56 +0000 (17:31 +0100)]
ITS#8221 fix typos
Quanah Gibson-Mount [Mon, 28 Sep 2015 19:42:00 +0000 (14:42 -0500)]
Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_4
Howard Chu [Sun, 27 Sep 2015 21:37:28 +0000 (22:37 +0100)]
ITS#8221, #8256
Howard Chu [Sat, 26 Sep 2015 15:50:28 +0000 (16:50 +0100)]
ITS#8221 don't merge branch pages needlessly
Luke Yeager [Sat, 19 Sep 2015 01:06:43 +0000 (18:06 -0700)]
ITS#8256 Create install directories if needed
Howard Chu [Tue, 22 Sep 2015 20:43:02 +0000 (21:43 +0100)]
ITS#8233 (#8251)
Schema parsing ignores some slapd.conf rules
Quanah Gibson-Mount [Mon, 21 Sep 2015 21:30:59 +0000 (16:30 -0500)]
ITS#8249
Howard Chu [Thu, 17 Sep 2015 19:41:58 +0000 (20:41 +0100)]
ITS#8249 add option to return search entry
Quanah Gibson-Mount [Mon, 21 Sep 2015 21:30:06 +0000 (16:30 -0500)]
ITS#8244
Howard Chu [Mon, 14 Sep 2015 04:42:20 +0000 (05:42 +0100)]
ITS#8244 skip client controls in ldap_back_entry_get()
Quanah Gibson-Mount [Mon, 21 Sep 2015 19:40:29 +0000 (14:40 -0500)]
ITS#7897
Ryan Tandy [Mon, 14 Jul 2014 16:42:14 +0000 (09:42 -0700)]
ITS#7897 fix admin guide syncrepl TLS defaults
In 2.4 syncrepl was changed to take its TLS defaults from the slapd
configuration (commit
1cc1f9b ) and the man page was updated to document
that (commit
27dd7a5 ). This updates the admin guide to match.
Quanah Gibson-Mount [Mon, 21 Sep 2015 19:31:05 +0000 (14:31 -0500)]
Merge remote-tracking branch 'origin/mdb.RE/0.9' into OPENLDAP_REL_ENG_2_4
Howard Chu [Sat, 12 Sep 2015 22:08:14 +0000 (23:08 +0100)]
ITS#7377, 8237
Howard Chu [Sun, 6 Sep 2015 18:18:19 +0000 (19:18 +0100)]
ITS#8237 fix ITS#7589 regression
Hallvard Furuseth [Sun, 23 Aug 2015 09:12:45 +0000 (11:12 +0200)]
ITS#7377 mdb_env_init_meta(): Catch calloc error
Howard Chu [Sat, 12 Sep 2015 21:17:16 +0000 (22:17 +0100)]
Revert "Revert "ITS#8240""
We have never documented our use of assert, so can't expect
builders to do the right thing.
This reverts commit
c5b4cd672eb4a3296e62711473e4c9b7e8a07378 .
Howard Chu [Sat, 12 Sep 2015 09:08:40 +0000 (10:08 +0100)]
Quanah Gibson-Mount [Fri, 11 Sep 2015 17:07:22 +0000 (12:07 -0500)]
ITS#8240
Howard Chu [Wed, 9 Sep 2015 23:37:32 +0000 (00:37 +0100)]
ITS#8240 remove obsolete assert
Quanah Gibson-Mount [Fri, 11 Sep 2015 17:06:25 +0000 (12:06 -0500)]
ITS#7964
Ryan Tandy [Mon, 7 Sep 2015 04:09:51 +0000 (21:09 -0700)]
ITS#7964 avoid double-unescaping rewrite rules
config_fp_parse_line processes backslash escapes. When existing rewrite
rules were reloaded while inserting a new rule, this caused backslashes
to be lost from every rule except the most recently inserted one.
config_parse_ldif performs similar splitting, but leaves backslashes
alone.
Quanah Gibson-Mount [Fri, 11 Sep 2015 17:05:18 +0000 (12:05 -0500)]
ITS#7889
Ryan Tandy [Sun, 6 Sep 2015 00:59:38 +0000 (17:59 -0700)]
ITS#7889 add olcDropUnrequested to olcRwmConfig
Quanah Gibson-Mount [Fri, 11 Sep 2015 17:03:26 +0000 (12:03 -0500)]
ITS#8235
Ryan Tandy [Wed, 2 Sep 2015 20:15:23 +0000 (13:15 -0700)]
ITS#8235 fix compiler warnings
Quanah Gibson-Mount [Fri, 11 Sep 2015 17:00:22 +0000 (12:00 -0500)]
ITS#8234
Ryan Tandy [Wed, 2 Sep 2015 02:19:57 +0000 (19:19 -0700)]
ITS#8234 revert to default policy on failure
Quanah Gibson-Mount [Fri, 11 Sep 2015 16:58:59 +0000 (11:58 -0500)]
ITS#7537
Ryan Tandy [Wed, 2 Sep 2015 01:56:19 +0000 (18:56 -0700)]
ITS#7537 release entry on failure
Quanah Gibson-Mount [Fri, 11 Sep 2015 16:55:05 +0000 (11:55 -0500)]
ITS#8233
Howard Chu [Tue, 1 Sep 2015 00:09:46 +0000 (01:09 +0100)]
ITS#8233 reject lines with unbalanced quotes
Quanah Gibson-Mount [Mon, 31 Aug 2015 15:38:17 +0000 (10:38 -0500)]
ITS#8232
Howard Chu [Sat, 29 Aug 2015 18:44:33 +0000 (19:44 +0100)]
ITS#8232 avoid redundant abandon processing
Quanah Gibson-Mount [Mon, 31 Aug 2015 15:37:14 +0000 (10:37 -0500)]
ITS#8231
Howard Chu [Sat, 29 Aug 2015 17:29:32 +0000 (18:29 +0100)]
ITS#8231 fix ITS#8042 regression
Quanah Gibson-Mount [Mon, 31 Aug 2015 15:33:34 +0000 (10:33 -0500)]
ITS#8198
Ryan Tandy [Sun, 23 Aug 2015 01:59:13 +0000 (18:59 -0700)]
ITS#8198 use #elif instead of #else for gnutls cases
Reserve #else for actual fallback cases.
Luca Bruno [Wed, 5 Nov 2014 14:32:33 +0000 (15:32 +0100)]
ITS#8198 Optionally use libnettle instead of OpenSSL for crypto
OpenLDAP can be configured to be either built with OpenSSL or
GnuTLS. This commit adds support for building pw-pbkbdf2 module
without OpenSSL, by using PBKDF2 crypto primitives provided by
libnettle.
Closes hamano/openldap-pbkdf2#2
Signed-off-by: Luca Bruno <luca.bruno@rocket-internet.de>
Luca Bruno [Wed, 5 Nov 2014 15:15:55 +0000 (16:15 +0100)]
ITS#8198 Fix an always-true check
Fixed asprintf return value check, in order to properly catch
error conditions. This has been caught by clang -Wtautological-compare:
pw-pbkdf2.c:132:17: warning: comparison of unsigned expression < 0 is always false
if(msg->bv_len < 0){
~~~~~~~~~~~ ^ ~
Signed-off-by: Luca Bruno <luca.bruno@rocket-internet.de>
Howard Chu [Sat, 22 Aug 2015 13:00:12 +0000 (14:00 +0100)]
Doc tweak - MDB_RESERVE / DUPSORT incompat
For those people who insist on ignoring the obvious.
Quanah Gibson-Mount [Sat, 22 Aug 2015 01:07:14 +0000 (20:07 -0500)]
Fix wording for ITS8082
Quanah Gibson-Mount [Fri, 21 Aug 2015 21:51:37 +0000 (16:51 -0500)]
ITS#8173
Howard Chu [Thu, 16 Jul 2015 02:29:06 +0000 (03:29 +0100)]
ITS#8173 fix SEGV after failed retry
Howard Chu [Fri, 21 Aug 2015 10:39:05 +0000 (11:39 +0100)]
ITS#8220 fix prev commit
Dynamic startup was failing
Quanah Gibson-Mount [Fri, 21 Aug 2015 21:44:32 +0000 (16:44 -0500)]
ITS#8082
Howard Chu [Wed, 19 Aug 2015 16:44:08 +0000 (17:44 +0100)]
ITS#8082 plug benign memleak
Quanah Gibson-Mount [Fri, 21 Aug 2015 21:43:57 +0000 (16:43 -0500)]
ITS#8218
Howard Chu [Wed, 19 Aug 2015 14:25:46 +0000 (15:25 +0100)]
ITS#8218 zero filter after freeing
This appears to be cruft leftover from rev
e8c58b4e7f21caa6c0b6006e3528cbad9b8aed45
Quanah Gibson-Mount [Fri, 21 Aug 2015 21:42:26 +0000 (16:42 -0500)]
ITS#8220
Howard Chu [Wed, 19 Aug 2015 13:04:15 +0000 (14:04 +0100)]
ITS#8220 restore refint performance
Quanah Gibson-Mount [Fri, 21 Aug 2015 21:39:36 +0000 (16:39 -0500)]
ITS#8185, ITS#8133
Howard Chu [Fri, 14 Aug 2015 23:56:50 +0000 (00:56 +0100)]
ITS#8185 missing schema reference
Howard Chu [Sat, 15 Aug 2015 00:42:12 +0000 (01:42 +0100)]
ITS#8185 fix OID collision
Ryan Tandy [Thu, 7 May 2015 04:39:10 +0000 (21:39 -0700)]
ITS#8133 avoid mods during dds_db_open
If dds is present early in the overlay stack, the modify ops from
dds_expire can trigger other overlays before they have initialized.
Avoid that by delaying the first expiry until startup has finished.
Howard Chu [Fri, 14 Aug 2015 14:33:32 +0000 (15:33 +0100)]
Fix copy/paste error in prev commit
Howard Chu [Fri, 14 Aug 2015 14:19:46 +0000 (15:19 +0100)]
ITS#8185 add pwdMaxRecordedFailure
Limit the number of pwdFailureTime stamps to record, regardless
of lockout settings.