]>
git.sur5r.net Git - openldap/log
Ondrej Kuznik [Mon, 23 Apr 2012 14:58:20 +0000 (16:58 +0200)]
ITS#7256 A few issues discovered during testing slapmodify.
- bdb deallocates cursor after some tool operations but expects it to be
around every time it is called
- mdb tries to allocate a second transaction while it already holds one,
deadlocking
- op->o_hdr must exist for most uses of op, but o_tmpmfuncs need not
- what about indexing after a tool modify? Does it happen automatically?
Ondrej Kuznik [Mon, 23 Apr 2012 14:31:21 +0000 (16:31 +0200)]
ITS#7256 Consolidate cleanup code at one location.
Ondrej Kuznik [Mon, 23 Apr 2012 14:24:07 +0000 (16:24 +0200)]
ITS#7256 Rework entry retrieval and cleanup.
When doing deletes, lastmod has no entry to work on.
Ondrej Kuznik [Mon, 23 Apr 2012 13:28:41 +0000 (15:28 +0200)]
ITS#7256 Add some necessary checks.
Ondrej Kuznik [Mon, 23 Apr 2012 08:33:51 +0000 (10:33 +0200)]
ITS#7256 Set backend for operation.
slap_tool_entry_check does it but it is not called every time.
Ondrej Kuznik [Thu, 19 Apr 2012 14:05:35 +0000 (16:05 +0200)]
ITS#7256 Let slapmodify ignore unknown operations
ldapmodify already does the same.
Ondrej Kuznik [Thu, 19 Apr 2012 13:58:27 +0000 (15:58 +0200)]
ITS#7256 Allow deletes with slapmodify
Ondrej Kuznik [Thu, 19 Apr 2012 13:53:49 +0000 (15:53 +0200)]
ITS#7256 mplement bi_tool_entry_delete for back-ldif
Ondrej Kuznik [Thu, 19 Apr 2012 13:52:49 +0000 (15:52 +0200)]
ITS#7256 Introduce bi_tool_entry_delete
Ondrej Kuznik [Thu, 19 Apr 2012 13:50:25 +0000 (15:50 +0200)]
ITS#7256 Temporarily disable slapmodify checks
Ondrej Kuznik [Thu, 19 Apr 2012 13:30:42 +0000 (15:30 +0200)]
ITS#7212 rudimentary slapmodify support for back-config
Ondrej Kuznik [Thu, 19 Apr 2012 13:29:57 +0000 (15:29 +0200)]
ITS#7212 slapmodify support for back-ldif
Ondrej Kuznik [Thu, 19 Apr 2012 13:46:49 +0000 (15:46 +0200)]
ITS#7256 Introduce slapmodify test
Quanah Gibson-Mount [Tue, 8 Jul 2014 22:21:10 +0000 (17:21 -0500)]
Merge remote-tracking branch 'origin/mdb.master'
Hallvard Furuseth [Tue, 8 Jul 2014 22:01:18 +0000 (15:01 -0700)]
ITS#7713 cleanups
'#ifdef MDB_DEVEL' -> '#if MDB_DEVEL'
Fix comments, use actual PAGEBASE macro as originally intended.
Actually enable 64K pages. Set MDB_DATA_VERSION for testing only.
Hallvard Furuseth [Tue, 8 Jul 2014 18:52:53 +0000 (11:52 -0700)]
Fixes for loose pages
mdb_txn_commit(child): Give loose pages to parent.
Use a pointer beyond the page header instead of mp_next, so
we will not need to save/restore mp_pgno. This avoids a crash
caused by references to mp_pgno.
Howard Chu [Tue, 8 Jul 2014 18:54:24 +0000 (11:54 -0700)]
Re-fix cursor EOF
Fix in
534dcc721287cfe1051191a5cd7d3df6cf1dc409 was in wrong place
Howard Chu [Mon, 7 Jul 2014 16:12:22 +0000 (09:12 -0700)]
ITS#7713 handle 65536 byte page size
Fix mp_lower/mp_upper to exclude PAGEHDRSZ, which means our
max mp_upper is now pagesize - PAGEHDRSZ and won't overflow.
Currently must define MDB_DEVEL to use. Will be default for
LMDB 1.0/OpenLDAP 2.5
Howard Chu [Tue, 8 Jul 2014 00:13:51 +0000 (17:13 -0700)]
Set xcursor EOF after deleting last entry
Howard Chu [Mon, 7 Jul 2014 00:47:25 +0000 (17:47 -0700)]
Compacting copy doesn't need to snapshot metas
Howard Chu [Sun, 6 Jul 2014 14:49:38 +0000 (07:49 -0700)]
Windows fixes
Howard Chu [Sat, 5 Jul 2014 15:48:47 +0000 (08:48 -0700)]
Play games with object file layout
Use gcc section attribute to keep less frequently used functions
away from main code.
Howard Chu [Sat, 5 Jul 2014 14:49:10 +0000 (07:49 -0700)]
Rationalize mdb_env_copy2 API
Howard Chu [Thu, 3 Jul 2014 21:26:14 +0000 (14:26 -0700)]
More tweaks to copyfd2
Make sure the writer thread starts and stops when we expect it to.
Howard Chu [Thu, 3 Jul 2014 17:49:05 +0000 (10:49 -0700)]
More copyfd2 tweaks
Howard Chu [Thu, 3 Jul 2014 15:31:57 +0000 (08:31 -0700)]
Fix envinfo to return fixed map address
Howard Chu [Thu, 3 Jul 2014 14:49:22 +0000 (07:49 -0700)]
Windows compat
Howard Chu [Thu, 3 Jul 2014 08:31:56 +0000 (01:31 -0700)]
ITS#7891 regenerate
Howard Chu [Thu, 3 Jul 2014 08:30:24 +0000 (01:30 -0700)]
Howard Chu [Wed, 2 Jul 2014 23:14:12 +0000 (16:14 -0700)]
ITS#7877 update GnuTLS version to 2.12.0
Howard Chu [Wed, 2 Jul 2014 22:51:52 +0000 (15:51 -0700)]
Disallow BDB 6.0.20+
Howard Chu [Wed, 2 Jul 2014 18:44:06 +0000 (11:44 -0700)]
Fix subDB/ovpage copying
Howard Chu [Wed, 2 Jul 2014 15:06:19 +0000 (08:06 -0700)]
Larger WBUF still better on large DB
Howard Chu [Wed, 2 Jul 2014 14:45:12 +0000 (07:45 -0700)]
Don't check LEAF2 pages for subnodes
Howard Chu [Wed, 2 Jul 2014 04:45:43 +0000 (21:45 -0700)]
Add mdb_env_copy2()
And mdb_env_copyfd2(). Perform compaction on the copy. Trims out
freed pages and renumbers data pages in sequential order. This is
more CPU-intensive since it copies and modifies data pages.
Howard Chu [Wed, 2 Jul 2014 01:53:47 +0000 (18:53 -0700)]
dump/load need mapsize etc.
Howard Chu [Tue, 1 Jul 2014 12:11:43 +0000 (05:11 -0700)]
All diagnostics should go to stderr
Howard Chu [Tue, 1 Jul 2014 03:23:11 +0000 (20:23 -0700)]
ITS#7877 regenerate configure
Howard Chu [Tue, 1 Jul 2014 03:22:43 +0000 (20:22 -0700)]
ITS#7877 require GnuTLS 2.12.0 or newer
Ryan Tandy [Mon, 30 Jun 2014 18:38:05 +0000 (11:38 -0700)]
ITS#7877 assume gnutls is at least 2.12.0
Ryan Tandy [Mon, 30 Jun 2014 18:36:40 +0000 (11:36 -0700)]
ITS#7877 assume gnutls provides cipher suites
Ryan Tandy [Mon, 30 Jun 2014 18:02:15 +0000 (11:02 -0700)]
ITS#7877 use nettle instead of gcrypt
ryan@nardis.ca [Fri, 27 Jun 2014 18:23:10 +0000 (18:23 +0000)]
ITS#7885 Wrong RPATH in contrib/passwd/Makefile
Similar to #7858, another easy patch.
Howard Chu [Mon, 30 Jun 2014 11:42:41 +0000 (04:42 -0700)]
More gcov setup tweaks
Howard Chu [Mon, 30 Jun 2014 11:41:50 +0000 (04:41 -0700)]
ITS#7886 fix mdb_copy write size
Don't try to write past end of file
Howard Chu [Mon, 30 Jun 2014 10:21:38 +0000 (03:21 -0700)]
ITS#7887 doc tweaks
MDB is the name of the backend, LMDB is the name of the DB engine.
Also update some BerkeleyDB info.
Hallvard Furuseth [Sat, 28 Jun 2014 11:38:03 +0000 (13:38 +0200)]
Fix mdb_page_loose() vs. mdb_page_flush().
Do not overwrite loose pages' mp_pgno with mp_next.
mdb_page_flush() will use mp_pgno to rebuild dirty_list.
Howard Chu [Fri, 27 Jun 2014 17:53:11 +0000 (10:53 -0700)]
Trap signals
Try to exit cleanly to avoid leaving stale readers. Not
a critical issue since mdb_reader_check can take care of
them, but still cleaner.
Howard Chu [Thu, 26 Jun 2014 12:19:47 +0000 (05:19 -0700)]
Setup for gcov/coverage testing
Quanah Gibson-Mount [Tue, 24 Jun 2014 18:46:07 +0000 (13:46 -0500)]
Merge remote-tracking branch 'origin/mdb.master'
Howard Chu [Tue, 24 Jun 2014 18:43:13 +0000 (11:43 -0700)]
More for mdb_page_loose
Require that the page is dirty in the current txn,
not a parent txn.
Howard Chu [Tue, 24 Jun 2014 11:42:44 +0000 (04:42 -0700)]
More MDB -> LMDB renames
Howard Chu [Tue, 24 Jun 2014 11:16:19 +0000 (04:16 -0700)]
Doc updates
Rename MDB -> LMDB
Integrate tool manpages
Howard Chu [Mon, 23 Jun 2014 15:21:36 +0000 (08:21 -0700)]
Fixup for win64 commit
couldn't avoid ifdefs. Silence warnings.
Howard Chu [Sun, 17 Nov 2013 01:21:48 +0000 (17:21 -0800)]
Windows64 32/64 silliness
On Windows64, long is the same size as int. Use size_t when we
need an actual 64 bit unsigned long.
Howard Chu [Mon, 23 Jun 2014 14:39:06 +0000 (07:39 -0700)]
ITS#7879 Windows build compatibility
Just use srand/rand, we don't care about the quality
of the random numbers, we just want some data.
Howard Chu [Mon, 23 Jun 2014 14:36:38 +0000 (07:36 -0700)]
Flesh out mdb_cmp_cint for BigEndians
Howard Chu [Sun, 22 Jun 2014 23:39:14 +0000 (16:39 -0700)]
More for page_loosen
Don't try this when working on the FreeDB. Again,
too much hassle to unkink the recursions...
Howard Chu [Sat, 21 Jun 2014 22:53:41 +0000 (15:53 -0700)]
More cleanup for page_merge, page_loosen
Only loosen src page if it's actually dirty.
Refactor page refs in page_merge.
Howard Chu [Sat, 21 Jun 2014 15:34:45 +0000 (08:34 -0700)]
Silence ptr arithmetic warnings
Howard Chu [Sat, 21 Jun 2014 10:30:34 +0000 (03:30 -0700)]
Handle loose pages
Pages that were dirtied and deleted in the same txn should be
reused, instead of consuming freeDB pages.
Howard Chu [Sat, 21 Jun 2014 06:40:44 +0000 (23:40 -0700)]
Fix mdb_page_merge
Similar to prev commit for mdb_node_move, the call of
mdb_page_serch_lowest() was leaving csrc unusable.
Howard Chu [Sat, 21 Jun 2014 00:56:04 +0000 (17:56 -0700)]
Fix mdb_node_move
Was leaving stale info in dst cursor
Howard Chu [Fri, 20 Jun 2014 16:03:41 +0000 (09:03 -0700)]
Fix lineno count
Howard Chu [Fri, 20 Jun 2014 16:00:33 +0000 (09:00 -0700)]
Fix multiple subDBs
Howard Chu [Fri, 20 Jun 2014 15:56:52 +0000 (08:56 -0700)]
Fix unhex
Howard Chu [Fri, 20 Jun 2014 15:49:59 +0000 (08:49 -0700)]
Add mdb_load
Howard Chu [Fri, 20 Jun 2014 12:33:31 +0000 (05:33 -0700)]
Add mdb_dump, update copyrights
Quanah Gibson-Mount [Wed, 18 Jun 2014 21:27:06 +0000 (16:27 -0500)]
Merge remote-tracking branch 'origin/mdb.master'
Howard Chu [Wed, 18 Jun 2014 21:25:46 +0000 (14:25 -0700)]
Bump to 0.9.13
Howard Chu [Wed, 18 Jun 2014 21:07:15 +0000 (14:07 -0700)]
Bump to 0.9.13
Hallvard Furuseth [Wed, 18 Jun 2014 21:01:14 +0000 (23:01 +0200)]
ITS#7793 Re-fix MDB_CURRENT doc: Match current item
Hallvard Furuseth [Wed, 18 Jun 2014 21:01:14 +0000 (23:01 +0200)]
Fix MDB_GET_MULTIPLE/MDB_NEXT_MULTIPLE doc.
Howard Chu [Wed, 18 Jun 2014 20:37:04 +0000 (13:37 -0700)]
Tweak ovpage search
Use num*20, chosen from empirical testing
Howard Chu [Wed, 18 Jun 2014 19:29:13 +0000 (12:29 -0700)]
Fix some overwrite quirks
Was skipping the overwrite in some cases, if the cmp function
said the new and old already matched. We should always perform
the overwrite anyway, since the cmp function may only be doing
a prefix compare and the data may actually be different.
Howard Chu [Wed, 18 Jun 2014 16:07:39 +0000 (09:07 -0700)]
Tweak prev patch for ovpage search
Howard Chu [Wed, 18 Jun 2014 10:02:08 +0000 (03:02 -0700)]
Shorten search for ovpage space
Howard Chu [Wed, 18 Jun 2014 09:53:17 +0000 (02:53 -0700)]
Paul B. Henson [Fri, 30 May 2014 23:47:34 +0000 (16:47 -0700)]
ITS#7161 ppolicy pwdFailureTime resolution should be better than 1 second
Quanah Gibson-Mount [Fri, 13 Jun 2014 17:54:53 +0000 (12:54 -0500)]
Merge remote-tracking branch 'origin/mdb.master'
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
Howard Chu [Fri, 13 Jun 2014 17:46:27 +0000 (10:46 -0700)]
Bump version to 0.9.12
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