]>
git.sur5r.net Git - openldap/log
Howard Chu [Thu, 8 Sep 2011 06:10:19 +0000 (23:10 -0700)]
Forgot to commit this
Howard Chu [Wed, 7 Sep 2011 09:04:40 +0000 (02:04 -0700)]
Further cursor-based restructuring
Get rid of all of the redundant MDB_*page structs and other cruft.
Howard Chu [Wed, 7 Sep 2011 06:37:37 +0000 (23:37 -0700)]
Cleanup unused code
Howard Chu [Wed, 7 Sep 2011 06:16:45 +0000 (23:16 -0700)]
Fix mdb_move_node again
Howard Chu [Tue, 6 Sep 2011 22:22:53 +0000 (15:22 -0700)]
Fix search_node, add cintcmp
Howard Chu [Tue, 6 Sep 2011 19:54:09 +0000 (12:54 -0700)]
Guarantee nodes are 2-byte aligned
Also fix xcursor_init1 md_dirty flag
Also another mdb_cmp refactoring fix
Howard Chu [Tue, 6 Sep 2011 12:17:24 +0000 (05:17 -0700)]
Change MDB_node to depend on 2-byte alignment
Howard Chu [Mon, 5 Sep 2011 23:54:39 +0000 (16:54 -0700)]
Fix for mdb_cmp refactoring
Howard Chu [Mon, 5 Sep 2011 21:22:46 +0000 (14:22 -0700)]
Minor cleanup
Howard Chu [Mon, 5 Sep 2011 09:36:24 +0000 (02:36 -0700)]
Use mdb_midl_append/sort instead of _insert
Howard Chu [Mon, 5 Sep 2011 07:46:32 +0000 (00:46 -0700)]
mdb_cmp refactoring
Howard Chu [Mon, 5 Sep 2011 01:34:03 +0000 (18:34 -0700)]
Cursor stuff working, no major perf gain
Howard Chu [Sun, 4 Sep 2011 18:59:32 +0000 (11:59 -0700)]
Cursors in-progress, broken
Howard Chu [Sun, 4 Sep 2011 03:42:46 +0000 (20:42 -0700)]
Use cursor->mc_flags
Howard Chu [Sun, 4 Sep 2011 00:24:39 +0000 (17:24 -0700)]
Begin reimplementing basic ops as cursor ops
Howard Chu [Sat, 3 Sep 2011 22:19:24 +0000 (15:19 -0700)]
Add MDB_{FIRST,LAST}_DUP for cursor_get
Howard Chu [Sun, 4 Sep 2011 03:11:07 +0000 (20:11 -0700)]
Fix mdb_split, fix MDB_GET_BOTH
Howard Chu [Fri, 2 Sep 2011 10:09:05 +0000 (03:09 -0700)]
Cleanup midl, start documenting internals
Howard Chu [Fri, 2 Sep 2011 08:09:11 +0000 (01:09 -0700)]
Tweak docs
Howard Chu [Thu, 1 Sep 2011 10:38:48 +0000 (03:38 -0700)]
Ugly-as-sin initial Windows port
Howard Chu [Wed, 31 Aug 2011 11:58:40 +0000 (04:58 -0700)]
API cleanup, doxygen docs for public API
Howard Chu [Mon, 29 Aug 2011 23:55:41 +0000 (16:55 -0700)]
Cleanup, fix freelist alloc
Don't allow new pages for free list to come from the free list.
Otherwise a nasty data self-reference occurs that is too much
trouble to unwind.
Howard Chu [Mon, 29 Aug 2011 10:45:13 +0000 (03:45 -0700)]
Tweak locks, fix race conditions
Howard Chu [Sun, 28 Aug 2011 00:32:24 +0000 (17:32 -0700)]
Reduce excessive memcpy in mdb_split
Howard Chu [Sat, 27 Aug 2011 23:53:58 +0000 (16:53 -0700)]
Fix mdb_split, tweak split_indx if space is tight
Howard Chu [Fri, 26 Aug 2011 20:37:02 +0000 (13:37 -0700)]
Fix update of big data items
Howard Chu [Fri, 26 Aug 2011 07:01:16 +0000 (00:01 -0700)]
Fix free page reclaim and dbs table update
Can re-use free pages 1 txn earlier
Must update all dbs tables on txn commit
Howard Chu [Fri, 26 Aug 2011 02:45:08 +0000 (19:45 -0700)]
More debug, fix MDB_DEL_DUP
Howard Chu [Thu, 25 Aug 2011 09:08:56 +0000 (02:08 -0700)]
More debug output
Howard Chu [Wed, 24 Aug 2011 08:45:42 +0000 (01:45 -0700)]
Add txn_reset / txn_renew
Howard Chu [Mon, 22 Aug 2011 00:49:54 +0000 (17:49 -0700)]
First cut at DUPFIXED support
Also in cursor_set, check the current page (if already set from
before) before starting over again from the root.
Howard Chu [Sat, 20 Aug 2011 00:20:56 +0000 (17:20 -0700)]
Set MINKEYS to 2
For better space utilization
Howard Chu [Fri, 19 Aug 2011 23:43:57 +0000 (16:43 -0700)]
Keep re-using dpages instead of freeing them
Hallvard B Furuseth [Fri, 19 Aug 2011 06:45:57 +0000 (08:45 +0200)]
Avoid cast-away-const for errstr[]
Hallvard B Furuseth [Fri, 19 Aug 2011 18:35:25 +0000 (20:35 +0200)]
Wrap O_DSYNC in MDB_DSYNC.
If O_DSYNC is not defined, that may be due to poor compiler options.
We could fall back to the less efficient O_SYNC, but it seems better
to let the user learn of the problem and give better compiler options.
Hallvard B Furuseth [Fri, 19 Aug 2011 15:27:06 +0000 (17:27 +0200)]
Simplify: Replace IDL*_CMP() with CMP()
Hallvard B Furuseth [Fri, 19 Aug 2011 19:56:10 +0000 (21:56 +0200)]
Macro cleanup: Parenthesize, simplify, remove a ;
Hallvard B Furuseth [Fri, 19 Aug 2011 18:18:18 +0000 (20:18 +0200)]
Drop gcc extension ,##__VA_ARGS__. Add DPUTS().
C99 says DPRINTF(fmt, ...) must get at least 2 args. Using DPUTS for 1 arg.
Howard Chu [Fri, 19 Aug 2011 20:57:36 +0000 (13:57 -0700)]
Fix cursor_set for dups
Also make sure dups are counted in md_entries
Howard Chu [Fri, 19 Aug 2011 20:10:51 +0000 (13:10 -0700)]
Sorted dups fix
Write the first datum normally. Convert to a sub-db if
additional items for the same key are written.
Howard Chu [Fri, 19 Aug 2011 07:14:16 +0000 (00:14 -0700)]
Don't alloc in cursor_push/pop
Howard Chu [Fri, 19 Aug 2011 06:09:17 +0000 (23:09 -0700)]
Fix multi-page commits
Howard Chu [Fri, 19 Aug 2011 04:58:22 +0000 (21:58 -0700)]
Fix overflow page read
Howard Chu [Fri, 19 Aug 2011 03:28:02 +0000 (20:28 -0700)]
Sub-DB init/dirty fixes
Howard Chu [Fri, 19 Aug 2011 02:30:54 +0000 (19:30 -0700)]
Fix dupsort fetch
Howard Chu [Fri, 19 Aug 2011 02:22:24 +0000 (19:22 -0700)]
More txn/cursor cleanup
Howard Chu [Fri, 19 Aug 2011 00:38:39 +0000 (17:38 -0700)]
Update DB tables on commit even if no dirty pages
Howard Chu [Tue, 16 Aug 2011 23:47:15 +0000 (16:47 -0700)]
Add mdb_strerror(), mdb_env_set_flags()
Howard Chu [Tue, 16 Aug 2011 21:23:44 +0000 (14:23 -0700)]
allow silent commit of read-only TXNs
Howard Chu [Tue, 16 Aug 2011 01:40:50 +0000 (18:40 -0700)]
Protect err codes
Howard Chu [Tue, 16 Aug 2011 01:37:30 +0000 (18:37 -0700)]
Error cleanup
Replace MDB_FAIL with more specific codes
Return MDB_PANIC after failure to write meta page
Howard Chu [Mon, 15 Aug 2011 03:12:20 +0000 (20:12 -0700)]
Get rid of AC_MEMCPY
Howard Chu [Mon, 15 Aug 2011 03:01:26 +0000 (20:01 -0700)]
Use IDL2 for dirty page list
Howard Chu [Mon, 15 Aug 2011 00:36:44 +0000 (17:36 -0700)]
Use O_DSYNC on metafd.
Use sync writes in mtest.
Howard Chu [Fri, 12 Aug 2011 11:59:12 +0000 (04:59 -0700)]
Minor cleanup
Howard Chu [Fri, 12 Aug 2011 11:47:00 +0000 (04:47 -0700)]
Better defs for locker structures
Howard Chu [Fri, 12 Aug 2011 11:11:14 +0000 (04:11 -0700)]
Silence stupid warning
Howard Chu [Fri, 12 Aug 2011 06:20:16 +0000 (23:20 -0700)]
Add mdb_version()
Howard Chu [Fri, 12 Aug 2011 04:14:29 +0000 (21:14 -0700)]
Rationalize mdbenv namespace
Howard Chu [Fri, 12 Aug 2011 03:23:39 +0000 (20:23 -0700)]
Move MDB_VERSION to mdb.h, use major/minor/patch
Howard Chu [Fri, 12 Aug 2011 03:16:10 +0000 (20:16 -0700)]
Tweak MDB_val to match struct berval
Howard Chu [Fri, 12 Aug 2011 00:33:28 +0000 (17:33 -0700)]
Rename idl to midl
Howard Chu [Thu, 11 Aug 2011 22:03:33 +0000 (15:03 -0700)]
Add another FIXME comment
Howard Chu [Thu, 11 Aug 2011 21:56:54 +0000 (14:56 -0700)]
Add mtest2 and 3
Howard Chu [Thu, 11 Aug 2011 21:55:58 +0000 (14:55 -0700)]
Portability tweak
Howard Chu [Thu, 11 Aug 2011 21:35:52 +0000 (14:35 -0700)]
Make a shared library too
Howard Chu [Thu, 11 Aug 2011 21:23:01 +0000 (14:23 -0700)]
Start using as a library
Howard Chu [Thu, 11 Aug 2011 20:43:01 +0000 (13:43 -0700)]
Sorted dup fixes
Howard Chu [Thu, 11 Aug 2011 18:35:39 +0000 (11:35 -0700)]
Add MDB_INTEGERKEY db flag
Howard Chu [Thu, 11 Aug 2011 12:04:49 +0000 (05:04 -0700)]
Allow setting DB flags on main DB
Howard Chu [Thu, 11 Aug 2011 11:46:14 +0000 (04:46 -0700)]
Cleanup, add mdb_cursor_count()
Howard Chu [Thu, 11 Aug 2011 11:00:19 +0000 (04:00 -0700)]
More DB checks
Howard Chu [Thu, 11 Aug 2011 10:48:26 +0000 (03:48 -0700)]
Consolidate stat functions
Howard Chu [Thu, 11 Aug 2011 10:30:00 +0000 (03:30 -0700)]
Header cleanup
Howard Chu [Thu, 11 Aug 2011 10:23:22 +0000 (03:23 -0700)]
More subDB fixes
Howard Chu [Thu, 11 Aug 2011 08:36:12 +0000 (01:36 -0700)]
Parameter cleanup
Howard Chu [Thu, 11 Aug 2011 08:08:16 +0000 (01:08 -0700)]
Valgrind complaints
Howard Chu [Thu, 11 Aug 2011 07:33:27 +0000 (00:33 -0700)]
More subDB stuff
Howard Chu [Thu, 11 Aug 2011 06:38:50 +0000 (23:38 -0700)]
Make sure subDB info is saved after writes
Howard Chu [Thu, 11 Aug 2011 06:21:36 +0000 (23:21 -0700)]
Sorted dups basically completed, needs testing
Howard Chu [Thu, 11 Aug 2011 05:50:34 +0000 (22:50 -0700)]
Added cursor_get for sorted dups
Howard Chu [Thu, 11 Aug 2011 03:17:06 +0000 (20:17 -0700)]
Add mdb_get for sorted dups
Howard Chu [Thu, 11 Aug 2011 03:00:13 +0000 (20:00 -0700)]
Add mdb_del for sorted dups
Howard Chu [Thu, 11 Aug 2011 02:26:06 +0000 (19:26 -0700)]
Add mdb_put for sorted dups
Howard Chu [Wed, 10 Aug 2011 23:09:29 +0000 (16:09 -0700)]
Fix reader txn locking
Howard Chu [Wed, 10 Aug 2011 22:48:58 +0000 (15:48 -0700)]
Don't malloc the free_pgs list every time
Howard Chu [Wed, 10 Aug 2011 02:54:15 +0000 (19:54 -0700)]
Setup context for sorted dups
Howard Chu [Wed, 10 Aug 2011 01:56:08 +0000 (18:56 -0700)]
Add explicit md_dirty flag to dbxs
Howard Chu [Tue, 9 Aug 2011 10:26:45 +0000 (03:26 -0700)]
Add cursor_prev
Howard Chu [Tue, 9 Aug 2011 09:22:28 +0000 (02:22 -0700)]
Use BDB cursor terminology
Howard Chu [Tue, 9 Aug 2011 08:13:55 +0000 (01:13 -0700)]
Add some legalese
Note derived from Martin Hedenfalk's btree.c; the code
is significantly reworked but owes a lot to the original.
Howard Chu [Tue, 9 Aug 2011 00:15:02 +0000 (17:15 -0700)]
Additional debug, fixes
Fixed order of mdb_del0 operations
Drop in-memory free list from env on txn_abort
Howard Chu [Mon, 8 Aug 2011 12:41:50 +0000 (05:41 -0700)]
Save free-list in DB
Howard Chu [Mon, 8 Aug 2011 05:37:45 +0000 (22:37 -0700)]
More sub-db stuff
Howard Chu [Wed, 3 Aug 2011 22:09:45 +0000 (15:09 -0700)]
Use STAILQ instead of SIMPLEQ
For compat with ancient BSD. Will probably just copy <ldap_queue.h> instead.
Howard Chu [Wed, 3 Aug 2011 22:04:20 +0000 (15:04 -0700)]
More subdb stuff, add cursor_last()
Howard Chu [Wed, 3 Aug 2011 18:51:36 +0000 (11:51 -0700)]
Tweak mt_dbxs array
Howard Chu [Wed, 3 Aug 2011 10:29:15 +0000 (03:29 -0700)]
Fix free page re-use
Howard Chu [Wed, 3 Aug 2011 10:21:07 +0000 (03:21 -0700)]
Fixup metapage writes
Howard Chu [Wed, 3 Aug 2011 09:23:16 +0000 (02:23 -0700)]
Tweaks to txn handling