]>
git.sur5r.net Git - openldap/log
Quanah Gibson-Mount [Fri, 13 Jun 2014 17:54:40 +0000 (12:54 -0500)]
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
Quanah Gibson-Mount [Fri, 13 Jun 2014 17:37:05 +0000 (12:37 -0500)]
Merge remote-tracking branch 'origin/mdb.master'
Howard Chu [Fri, 13 Jun 2014 17:08:07 +0000 (10:08 -0700)]
ITS#7871 more for LDIF wrap
Clients should just use 0 for default wrap, and let libldif
take care of it.
Howard Chu [Thu, 12 Jun 2014 20:23:29 +0000 (13:23 -0700)]
Revert "ITS#7616 defer searches while consumer refreshing"
This reverts commit
cf4aa8f9d9ac77d2884a34fa0d2e52951cf06ca6 .
There appears to be no safe way for this to work with MMR.
Howard Chu [Wed, 11 Jun 2014 09:27:30 +0000 (02:27 -0700)]
ITS#7875 fix #7681 regression
Due to commit
18a07eb7c2dc33372455a6040984cd6b699b41a5
Howard Chu [Wed, 4 Jun 2014 21:24:20 +0000 (14:24 -0700)]
ITS#7873 check for pauses
Howard Chu [Wed, 4 Jun 2014 21:02:06 +0000 (14:02 -0700)]
ITS#7872 plug memleak of matchedDN
Howard Chu [Wed, 4 Jun 2014 09:23:18 +0000 (02:23 -0700)]
Plug one-time leaks
Howard Chu [Wed, 4 Jun 2014 07:52:01 +0000 (00:52 -0700)]
ITS#7871 fix ldif-wrap length
Doc has been updated to note the default was actually 78.
The off-by-two error is fixed. Note that wrap=1 will still
output 2 columns, otherwise it can't output anything besides
the continuation character.
Howard Chu [Wed, 4 Jun 2014 03:38:21 +0000 (20:38 -0700)]
ITS#7870 ignore index DBs in slapcat
Alexey Naumov [Sun, 25 May 2014 11:10:21 +0000 (17:10 +0600)]
Fix possible crash in DLL_THREAD_DETACH (explodes in .Net Framework)
Hallvard Furuseth [Fri, 30 May 2014 08:50:04 +0000 (10:50 +0200)]
Comment ~MDB_APPEND, from earlier commit message.
Hallvard Furuseth [Fri, 30 May 2014 08:47:56 +0000 (10:47 +0200)]
Factor out mdb_cmp_clong()
Hallvard Furuseth [Fri, 30 May 2014 08:47:56 +0000 (10:47 +0200)]
More for big MDB_MAXKEYSIZE with MDB_DUPSORT.
With mdb_cursor_put(new key, data item big enough to need a sub-DB):
- Track cursors as when adding other nodes. The "!do_sub" is now
unneeded. Before ITS#7861 it distinguished inserting key from data.
- Set MDB_TXN_ERROR if an empty sub-DB was created. I.e. adding
key:subDB succeeded, but inserting the data item failed.
Hallvard Furuseth [Fri, 30 May 2014 07:06:08 +0000 (09:06 +0200)]
Factor out MDB_TXN_ERROR
Hallvard Furuseth [Fri, 30 May 2014 07:06:08 +0000 (09:06 +0200)]
Simplify MDB_MULTIPLE
Hallvard Furuseth [Fri, 30 May 2014 07:06:08 +0000 (09:06 +0200)]
ITS#7834 Fix MDB_MULTIPLE writing multiple keys.
Update the state before looping, so the key is not duplicated.
Broke in
4c8f57615c5ca7b014c038e59c1045182e74f5ad (mostly).
Hallvard Furuseth [Fri, 30 May 2014 07:06:08 +0000 (09:06 +0200)]
ITS#7861 Re-fix MDB_db.md_entries.
mdb_cursor_del(): Fix md_entries with MDB_NODUPDATA.
mdb_cursor_put(): Check in xcursor whether an item got inserted. Count
data instead of keys after
13d6d59c512065db3741c20c65b4d9928b986968 .
Hallvard Furuseth [Fri, 30 May 2014 07:06:08 +0000 (09:06 +0200)]
ITS#7771 mdb_cursor_put doc: Cursor moves on error
Hallvard Furuseth [Fri, 30 May 2014 07:06:08 +0000 (09:06 +0200)]
Document DBI issues, extend MDB_BAD_VALSIZE.
Hallvard Furuseth [Fri, 30 May 2014 07:06:08 +0000 (09:06 +0200)]
More ITS#7793 Check key->mv_size with MDB_CURRENT.
Since non-NULL key must be provided now.
Howard Chu [Wed, 28 May 2014 01:12:49 +0000 (18:12 -0700)]
Don't do any merging if manageDSAit was used
Just passthru search to local DB
Howard Chu [Mon, 26 May 2014 18:08:14 +0000 (11:08 -0700)]
ITS#7859 fix to read 4096-character lines
Howard Chu [Sun, 25 May 2014 19:49:06 +0000 (12:49 -0700)]
ITS#7858 fix install path
Howard Chu [Fri, 23 May 2014 13:56:56 +0000 (06:56 -0700)]
ITS#7849 make sure to send cookie after fallback
Howard Chu [Fri, 23 May 2014 13:56:16 +0000 (06:56 -0700)]
ITS#7616 defer searches while consumer refreshing
Howard Chu [Tue, 20 May 2014 15:47:28 +0000 (08:47 -0700)]
Fix mdb_rebalance collapsing root
Shift the rest of the cursor stack as needed
Howard Chu [Fri, 16 May 2014 04:27:21 +0000 (21:27 -0700)]
ITS#7705,#7800 fix prev commit
Better check for missing IDs
Howard Chu [Fri, 16 May 2014 03:46:20 +0000 (20:46 -0700)]
ITS#7705,#7800 fix back-mdb pagedResults search
mdb_idscopes was remembering the IDs of every entry it checked;
it should only have been saving the IDs of entries that were
actually in the search scope. The extra entries filled the scopes
array, causing a loop searching for a parent entry that was
never inserted.
Howard Chu [Fri, 9 May 2014 18:29:45 +0000 (11:29 -0700)]
ITS#7850 catch invalid naming attr
Quanah Gibson-Mount [Mon, 5 May 2014 16:52:33 +0000 (11:52 -0500)]
ITS#7847
Add exattr bits to slapd.conf(5)
Quanah Gibson-Mount [Fri, 25 Apr 2014 21:04:19 +0000 (16:04 -0500)]
(L)MDB updates
Quanah Gibson-Mount [Fri, 25 Apr 2014 20:03:50 +0000 (15:03 -0500)]
Convert quickstart guide to cn=config
Quanah Gibson-Mount [Fri, 25 Apr 2014 19:43:12 +0000 (14:43 -0500)]
Relocate the maxsize bit
Quanah Gibson-Mount [Fri, 25 Apr 2014 19:36:09 +0000 (14:36 -0500)]
Sample slapd.ldif is missing the olcDbMaxSize parameter
Howard Chu [Fri, 4 Apr 2014 10:25:17 +0000 (03:25 -0700)]
ITS#7831 fix double-free
caused by
c1e937c2622abd4de708c22529a89f8e914887bd (ITS#6684)
Howard Chu [Thu, 3 Apr 2014 19:51:41 +0000 (12:51 -0700)]
ITS#7829 more for mdb_rebalance
Make sure to propagate rebalance results all the
way back to original caller's cursor.
Hallvard Furuseth [Wed, 2 Apr 2014 05:02:14 +0000 (07:02 +0200)]
ITS#7829 Simplify last commit
HAMANO Tsukasa [Fri, 8 Nov 2013 08:58:00 +0000 (17:58 +0900)]
ITS#7742 New: PBKDF2 module
Signed-off-by: HAMANO Tsukasa <hamano@osstech.co.jp>
Quanah Gibson-Mount [Tue, 1 Apr 2014 23:29:53 +0000 (16:29 -0700)]
Regenerate
Quanah Gibson-Mount [Tue, 1 Apr 2014 23:29:13 +0000 (16:29 -0700)]
After discussion, leave old enable options for bdb/hdb unchanged
Howard Chu [Mon, 31 Mar 2014 20:42:19 +0000 (13:42 -0700)]
ITS#7829 more for prev commit
Howard Chu [Fri, 28 Mar 2014 20:51:59 +0000 (13:51 -0700)]
ITS#7829 fix rebalance
Fixup cursor state after node_move/page_merge
Howard Chu [Wed, 26 Mar 2014 15:59:43 +0000 (08:59 -0700)]
ITS#7793/7828
Fix md_entries count, test for insert on md_entries increment
Howard Chu [Wed, 26 Mar 2014 09:41:26 +0000 (02:41 -0700)]
More for ITS#7793/7828
Note MDB_CURRENT/MDB_DUPSORT requirement
Howard Chu [Wed, 26 Mar 2014 09:33:51 +0000 (02:33 -0700)]
ITS#7828, #7793
Clarify MDB_CURRENT key usage, simplify freelist_save
Howard Chu [Wed, 26 Mar 2014 09:18:20 +0000 (02:18 -0700)]
Revert "ITS#7793 mdb_cursor_put(): Fix MDB_CURRENT."
This reverts commit
4e954f8ae83d5b39736bab2da0eaf2bdf5ee3961 .
Caused ITS#7828.
Howard Chu [Tue, 25 Mar 2014 22:18:17 +0000 (15:18 -0700)]
ITS#7827 slapacl requires a valid suffix
Hallvard Furuseth [Sun, 23 Mar 2014 12:06:03 +0000 (13:06 +0100)]
Revert "Update MDB_PANIC description" (thinko).
This reverts commit
6bd34d0534f1c8bfd73deaf70febd3b58a2f9d5a .
Hallvard Furuseth [Sat, 22 Mar 2014 21:27:10 +0000 (22:27 +0100)]
Update MDB_PANIC description
Hallvard Furuseth [Sat, 22 Mar 2014 21:27:10 +0000 (22:27 +0100)]
Tweak mdb_mid2l_insert() call from ITS#7775.
It does not return MDB error codes.
Howard Chu [Thu, 20 Mar 2014 08:29:04 +0000 (01:29 -0700)]
Recommend mdb, deprecate BDB
Howard Chu [Tue, 18 Mar 2014 18:47:31 +0000 (11:47 -0700)]
ITS#7587 fix double-free
Related to
bb3e14ddba025229816e0bc5bfd0228fbaed6985 (ITS#6254)
Howard Chu [Tue, 18 Mar 2014 12:40:30 +0000 (05:40 -0700)]
Merge remote-tracking branch 'origin/mdb.master'
Jan Synacek [Wed, 13 Nov 2013 08:06:54 +0000 (09:06 +0100)]
ITS#7723 fix reference counting
Hallvard Furuseth [Sun, 16 Mar 2014 11:42:43 +0000 (12:42 +0100)]
mtest: Accept an MDB_NOTFOUND case
Hallvard Furuseth [Sun, 16 Mar 2014 11:42:43 +0000 (12:42 +0100)]
Handle more errors. Invalidate txn if needed.
Hallvard Furuseth [Sun, 16 Mar 2014 11:42:42 +0000 (12:42 +0100)]
Don't use non-existent node info in branch/leaf2
Hallvard Furuseth [Sun, 16 Mar 2014 11:42:42 +0000 (12:42 +0100)]
Move code out of mdb_cursor_del0() and mdb_del().
Prepares for the next commits.
Hallvard Furuseth [Sun, 16 Mar 2014 11:42:42 +0000 (12:42 +0100)]
More checks for closed DBIs and invalidated txns.
Factor txn/DBI-checks out to TXN_DBI_EXIST().
mdb_audit(): Skip closed DBIs.
mdb_cursor_renew(), mdb_stat(): Check DBI and txn.
mdb_cursor_count(): Check txn.
mdb_dbi_flags(): Check DBI.
Hallvard Furuseth [Sun, 16 Mar 2014 11:42:42 +0000 (12:42 +0100)]
mdb_page_list(): Support & display all page types
Hallvard Furuseth [Sun, 16 Mar 2014 11:42:42 +0000 (12:42 +0100)]
mdb_txn_renew0(): Fix un-mutexed me_flags update.
Replace env flag MDB_LIVE_READER with field me_live_reader.
Hallvard Furuseth [Sun, 16 Mar 2014 11:42:42 +0000 (12:42 +0100)]
Doxygen fixes
Howard Chu [Sun, 16 Mar 2014 10:55:03 +0000 (03:55 -0700)]
Rename samples
They're meant to be read and studied, not run.
Howard Chu [Thu, 6 Mar 2014 04:40:12 +0000 (20:40 -0800)]
ITS#7815 more for page_split
This case didn't come up in testing. Needs finer grained test.
Howard Chu [Thu, 6 Mar 2014 04:04:42 +0000 (20:04 -0800)]
ITS#7815 fix mdb_page_split
Was leaving cursor pointed at wrong page if the newindx was
in the right sibling page, and the parent was also split.
Howard Chu [Fri, 28 Feb 2014 20:52:39 +0000 (12:52 -0800)]
ITS#7803 reference slapd-config(5)
Also replace BDB example with LMDB
Kevin H. Patterson [Wed, 26 Feb 2014 18:08:24 +0000 (13:08 -0500)]
ITS#7806 fixed memory leak in LDAPAsynConnection.cpp
Hallvard Furuseth [Wed, 19 Feb 2014 20:25:40 +0000 (21:25 +0100)]
mtest*.c, sample-*.c: Add/note error checks.
Hallvard Furuseth [Wed, 19 Feb 2014 20:25:40 +0000 (21:25 +0100)]
mtest[46]: Use different DBs when different flags.
Howard Chu [Fri, 7 Feb 2014 11:02:33 +0000 (03:02 -0800)]
ITS#7798 fix mdb_entry_decode()
Howard Chu [Fri, 7 Feb 2014 08:31:23 +0000 (00:31 -0800)]
More for ITS#4365 refix CR/LF handling
Was rejecting "-\r\n" in input LDIF
Hallvard Furuseth [Tue, 28 Jan 2014 13:27:27 +0000 (14:27 +0100)]
ITS#7793 mdb_cursor_put(): Fix MDB_CURRENT.
Ignore key, broken by
5bda3565a9bfaa6cd54053faeafcc06da15bc00c
and some older code. Document and clarify MDB_CURRENT usage.
Also affects non-MDB_CURRENT put() with empty data and a key
which matches by the mdb_set_compare function but not by memcmp.
Kurt Zeilenga [Sat, 25 Jan 2014 13:21:25 +0000 (05:21 -0800)]
Happy new year (belated)
Quanah Gibson-Mount [Wed, 15 Jan 2014 17:17:26 +0000 (11:17 -0600)]
Merge remote-tracking branch 'origin/mdb.master'
Howard Chu [Wed, 15 Jan 2014 17:09:48 +0000 (09:09 -0800)]
Bump version to 0.9.11
Quanah Gibson-Mount [Wed, 15 Jan 2014 02:33:22 +0000 (20:33 -0600)]
Merge remote-tracking branch 'origin/mdb.master'
Howard Chu [Wed, 15 Jan 2014 01:12:48 +0000 (17:12 -0800)]
Note changes for LMDB 0.9.11
Hallvard Furuseth [Mon, 13 Jan 2014 19:46:08 +0000 (20:46 +0100)]
Revert "ITS#7772 Reduce spurious sub-page growth."
This reverts commit
75494c08b49c3ef77dce8a00f2bc44c83658c1a7 ,
which must await a fix to ITS#7771 (DUPSORT cursor tracking).
Howard Chu [Mon, 13 Jan 2014 19:26:46 +0000 (11:26 -0800)]
ITS#7778 fix regression from #7329
Howard Chu [Mon, 13 Jan 2014 01:37:04 +0000 (17:37 -0800)]
Make sure mapsize changes take effect on Windows.
Howard Chu [Sun, 12 Jan 2014 21:43:55 +0000 (13:43 -0800)]
ITS#7783 workaround stupid NSPR bug
free(NULL) is supposed to be safe. "Portable wrapper libraries"
that fail to preserve this behavior are inherently broken.
But then again, this is Mozilla code, so that's redundant.
Quanah Gibson-Mount [Tue, 7 Jan 2014 23:45:08 +0000 (17:45 -0600)]
Merge remote-tracking branch 'origin/mdb.master'
Hallvard Furuseth [Mon, 6 Jan 2014 22:21:54 +0000 (23:21 +0100)]
ITS#7775 Drop <assert.h>, drop/replace assert()s.
db_mid2l_insert(): Move assert to mdb.c.
mdb_cursor_set(): Previous assert cannot fail now.
mdb_cursor_put(): Check mc/key and return EINVAL.
mdb_cursor_dbi(): No error return, so just segfault if cursor==NULL.
Howard Chu [Mon, 6 Jan 2014 22:21:44 +0000 (23:21 +0100)]
ITS#7775 Cleanup mdb_node_del()
Hallvard Furuseth [Mon, 6 Jan 2014 22:17:38 +0000 (23:17 +0100)]
ITS#7775 Add mdb_env_set_assert()
Hallvard Furuseth [Mon, 6 Jan 2014 22:17:38 +0000 (23:17 +0100)]
Add mdb_env_<set,get>_userctx()
Hallvard Furuseth [Mon, 6 Jan 2014 22:17:37 +0000 (23:17 +0100)]
ITS#7377 Invalidate txn on page-allocation errors
This should likely be reverted when all callers handle these errors.
Hallvard Furuseth [Sun, 5 Jan 2014 15:37:26 +0000 (16:37 +0100)]
Wrap __func__ in mdb_func_
Hallvard Furuseth [Sun, 5 Jan 2014 15:26:21 +0000 (16:26 +0100)]
Invalidate the txn on corruption/internal errors
Howard Chu [Fri, 3 Jan 2014 20:40:28 +0000 (12:40 -0800)]
ITS#7775 cleanup unnecessary assert()s
Hallvard Furuseth [Tue, 31 Dec 2013 01:16:19 +0000 (02:16 +0100)]
mdb_page_malloc(): Move VGMEMP_ALLOC before memset
Hallvard Furuseth [Sun, 29 Dec 2013 14:58:21 +0000 (15:58 +0100)]
ITS#7771 mdb_cursor_del0(): Fix xcursor tracking.
Hallvard Furuseth [Sun, 29 Dec 2013 14:57:33 +0000 (15:57 +0100)]
sprintf format: pid_t need not be an int.
Hallvard Furuseth [Sun, 29 Dec 2013 14:09:51 +0000 (15:09 +0100)]
Add mdb_dbg_pgno(): (sub)pagenum for debug output.
Hallvard Furuseth [Sun, 29 Dec 2013 14:09:05 +0000 (15:09 +0100)]
ITS#7772 Reduce spurious sub-page growth.
mdb_cursor_put(): Use free sub-page space added by a
previous put(existing DUPSORT item), if any.
Tweak NUMKEYS code to avoid a new signedness warning.
Hallvard Furuseth [Sun, 29 Dec 2013 13:54:17 +0000 (14:54 +0100)]
ITS#7665 Drop lmdb.h doc on non-overlapping flags.
It was inaccurate and misplaced. Verify it in mdb.c instead.
Hallvard Furuseth [Sun, 29 Dec 2013 13:52:30 +0000 (14:52 +0100)]
ITS#7515 has been fixed.
Hallvard Furuseth [Sun, 29 Dec 2013 13:52:30 +0000 (14:52 +0100)]
Drop UNLOCK_MUTEX_R() on mdb_reader_pid() error
Pierangelo Masarati [Sat, 28 Dec 2013 15:18:10 +0000 (16:18 +0100)]
handle softadd/softdel (internal modifications; ITS#7773)