]> git.sur5r.net Git - openldap/log
openldap
13 years agoAdd a few NULL checks to defend against dumb API checkers.
Howard Chu [Fri, 9 Sep 2011 06:41:06 +0000 (23:41 -0700)]
Add a few NULL checks to defend against dumb API checkers.

Unfortunately automated checkers don't seem to read the documentation
for how APIs are expected to be used, and the C declaration syntax
isn't expressive enough to encode the documented usage.

13 years agoUse tmpmem-based entries
Howard Chu [Fri, 9 Sep 2011 05:07:04 +0000 (22:07 -0700)]
Use tmpmem-based entries

13 years agoDrop referral.c
Howard Chu [Fri, 9 Sep 2011 05:02:59 +0000 (22:02 -0700)]
Drop referral.c

13 years agoMerge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Fri, 9 Sep 2011 04:42:58 +0000 (21:42 -0700)]
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap

13 years agoAdd Valgrind mempool support.
Howard Chu [Fri, 9 Sep 2011 04:39:45 +0000 (21:39 -0700)]
Add Valgrind mempool support.

Compile with -DUSE_VALGRIND. It will attempt to keep Valgrind
informed of our memory allocations. Frees are trickier since they
may be deferred indefinitely.

13 years agosilence warning
Pierangelo Masarati [Thu, 8 Sep 2011 23:08:05 +0000 (01:08 +0200)]
silence warning

13 years agoimport ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code...
Pierangelo Masarati [Thu, 8 Sep 2011 23:07:17 +0000 (01:07 +0200)]
import ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code; fix scope of addr[] when inet_ntop(3) is used

13 years agoMerge remote branch 'origin/mdb.master'
Howard Chu [Thu, 8 Sep 2011 21:35:17 +0000 (14:35 -0700)]
Merge remote branch 'origin/mdb.master'

13 years agoMore docs
Howard Chu [Thu, 8 Sep 2011 20:11:33 +0000 (13:11 -0700)]
More docs

13 years agofix uninit'ed vars (ITS#7039)
Pierangelo Masarati [Thu, 8 Sep 2011 21:31:21 +0000 (23:31 +0200)]
fix uninit'ed vars (ITS#7039)

13 years agoMerge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
Quanah Gibson-Mount [Thu, 8 Sep 2011 21:06:30 +0000 (14:06 -0700)]
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap

13 years agoFix loglevel <integer> to be loglevel <level> to match reality (and olcLogLevel descr...
Quanah Gibson-Mount [Thu, 8 Sep 2011 21:05:56 +0000 (14:05 -0700)]
Fix loglevel <integer> to be loglevel <level> to match reality (and olcLogLevel description too!)

13 years agoSpeedup cintcmp
Howard Chu [Thu, 8 Sep 2011 20:10:17 +0000 (13:10 -0700)]
Speedup cintcmp

Now that we know we're always 2-byte aligned...

13 years agoFix 6c8e4f2671b6aed41cd5098725048dbe2513612c
Howard Chu [Thu, 8 Sep 2011 17:31:04 +0000 (10:31 -0700)]
Fix 6c8e4f2671b6aed41cd5098725048dbe2513612c

13 years agoMerge remote branch 'origin/mdb.master'
Howard Chu [Thu, 8 Sep 2011 17:11:30 +0000 (10:11 -0700)]
Merge remote branch 'origin/mdb.master'

13 years agoFix previous commit
Howard Chu [Thu, 8 Sep 2011 17:08:21 +0000 (10:08 -0700)]
Fix previous commit

13 years agoMerge remote branch 'origin/mdb.master'
Howard Chu [Thu, 8 Sep 2011 06:58:29 +0000 (23:58 -0700)]
Merge remote branch 'origin/mdb.master'

13 years agoMerge branch 'mdb.cursor' into mdb.master
Howard Chu [Thu, 8 Sep 2011 06:57:50 +0000 (23:57 -0700)]
Merge branch 'mdb.cursor' into mdb.master

13 years agoPrint loop counter on failure
Howard Chu [Thu, 8 Sep 2011 06:49:41 +0000 (23:49 -0700)]
Print loop counter on failure

13 years agoForgot to commit this mdb.cursor
Howard Chu [Thu, 8 Sep 2011 06:10:19 +0000 (23:10 -0700)]
Forgot to commit this

13 years agoForgot to commit this
Howard Chu [Thu, 8 Sep 2011 06:10:19 +0000 (23:10 -0700)]
Forgot to commit this

13 years agoFurther cursor-based restructuring
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.

13 years agoCleanup unused code
Howard Chu [Wed, 7 Sep 2011 06:37:37 +0000 (23:37 -0700)]
Cleanup unused code

13 years agoMerge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Wed, 7 Sep 2011 06:22:40 +0000 (23:22 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap

13 years agoFix mdb_move_node again
Howard Chu [Wed, 7 Sep 2011 06:16:45 +0000 (23:16 -0700)]
Fix mdb_move_node again

13 years agoITS#7035 don't loop forever in wait4msg
Howard Chu [Wed, 7 Sep 2011 04:13:49 +0000 (21:13 -0700)]
ITS#7035 don't loop forever in wait4msg

13 years agoMore error msgs
Howard Chu [Wed, 7 Sep 2011 00:23:41 +0000 (17:23 -0700)]
More error msgs

13 years agoMerge branch 'mdb.master' of /home/hyc/OD/mdb
Howard Chu [Tue, 6 Sep 2011 22:24:00 +0000 (15:24 -0700)]
Merge branch 'mdb.master' of /home/hyc/OD/mdb

13 years agoFix search_node, add cintcmp
Howard Chu [Tue, 6 Sep 2011 22:22:53 +0000 (15:22 -0700)]
Fix search_node, add cintcmp

13 years agoFix 6c8e4f2 for empty suffixes
Howard Chu [Tue, 6 Sep 2011 21:04:38 +0000 (14:04 -0700)]
Fix 6c8e4f2 for empty suffixes

13 years agoMerge branch 'mdb.master' of /home/hyc/OD/mdb
Howard Chu [Tue, 6 Sep 2011 20:55:02 +0000 (13:55 -0700)]
Merge branch 'mdb.master' of /home/hyc/OD/mdb

13 years agoGuarantee nodes are 2-byte aligned
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

13 years agoChange MDB_node to depend on 2-byte alignment
Howard Chu [Tue, 6 Sep 2011 12:17:24 +0000 (05:17 -0700)]
Change MDB_node to depend on 2-byte alignment

13 years agoMore search optimizations
Howard Chu [Tue, 6 Sep 2011 09:21:19 +0000 (02:21 -0700)]
More search optimizations

13 years agoUse AD-indexes
Howard Chu [Tue, 6 Sep 2011 02:49:35 +0000 (19:49 -0700)]
Use AD-indexes

13 years agoAdd AttributeDescription counter
Howard Chu [Tue, 6 Sep 2011 00:43:15 +0000 (17:43 -0700)]
Add AttributeDescription counter

13 years agoMerge remote branch 'mdb/mdb.master'
Howard Chu [Mon, 5 Sep 2011 23:56:02 +0000 (16:56 -0700)]
Merge remote branch 'mdb/mdb.master'

13 years agoFix for mdb_cmp refactoring
Howard Chu [Mon, 5 Sep 2011 23:54:39 +0000 (16:54 -0700)]
Fix for mdb_cmp refactoring

13 years agoMore merge fix
Howard Chu [Mon, 5 Sep 2011 23:20:31 +0000 (16:20 -0700)]
More merge fix

13 years agoFix bad merge
Howard Chu [Mon, 5 Sep 2011 23:15:36 +0000 (16:15 -0700)]
Fix bad merge

13 years agoDebug helper for index
Howard Chu [Mon, 5 Sep 2011 22:23:08 +0000 (15:23 -0700)]
Debug helper for index

13 years agoMerge remote branch 'mdb/mdb.master'
Howard Chu [Mon, 5 Sep 2011 22:19:41 +0000 (15:19 -0700)]
Merge remote branch 'mdb/mdb.master'

13 years agoMinor cleanup
Howard Chu [Mon, 5 Sep 2011 21:22:46 +0000 (14:22 -0700)]
Minor cleanup

13 years agoback-mdb/Makefile.in += variable MDB_SUBDIR.
Hallvard Furuseth [Mon, 5 Sep 2011 19:10:04 +0000 (21:10 +0200)]
back-mdb/Makefile.in += variable MDB_SUBDIR.

For compiling against a checkout of the stand-alone libmdb,
which has a branch 'mdb.master' with its own root:
    git clone --branch=mdb.master <openldap_repo_dir> mdb
    set_mdb="MDB_SUBDIR=`pwd`/mdb/libraries/libmdb"
    ... maybe modify mdb repository for testing ...
    cd <openldap_repo_dir>; make $set_mdb

13 years agoFix from key_change consolidation
Howard Chu [Mon, 5 Sep 2011 10:52:38 +0000 (03:52 -0700)]
Fix from key_change consolidation

13 years agoUse mdb_midl_append/sort instead of _insert
Howard Chu [Mon, 5 Sep 2011 09:36:24 +0000 (02:36 -0700)]
Use mdb_midl_append/sort instead of _insert

13 years agoUse mdb_midl_append/sort instead of _insert
Howard Chu [Mon, 5 Sep 2011 09:36:24 +0000 (02:36 -0700)]
Use mdb_midl_append/sort instead of _insert

13 years agoCursor updates
Howard Chu [Mon, 5 Sep 2011 08:23:35 +0000 (01:23 -0700)]
Cursor updates

13 years agomdb_cmp refactoring
Howard Chu [Mon, 5 Sep 2011 07:46:32 +0000 (00:46 -0700)]
mdb_cmp refactoring

13 years agoReimplement basic ops as cursor ops
Howard Chu [Sun, 4 Sep 2011 00:24:39 +0000 (17:24 -0700)]
Reimplement basic ops as cursor ops

13 years agoAdd MDB_{FIRST,LAST}_DUP for cursor_get
Howard Chu [Sat, 3 Sep 2011 22:19:24 +0000 (15:19 -0700)]
Add MDB_{FIRST,LAST}_DUP for cursor_get

13 years agoCleanup midl, start documenting internals
Howard Chu [Fri, 2 Sep 2011 10:09:05 +0000 (03:09 -0700)]
Cleanup midl, start documenting internals

13 years agoTweak docs
Howard Chu [Fri, 2 Sep 2011 08:09:11 +0000 (01:09 -0700)]
Tweak docs

13 years agomdb_cmp refactoring
Howard Chu [Mon, 5 Sep 2011 07:46:32 +0000 (00:46 -0700)]
mdb_cmp refactoring

13 years agoCursor stuff working, no major perf gain
Howard Chu [Mon, 5 Sep 2011 01:34:03 +0000 (18:34 -0700)]
Cursor stuff working, no major perf gain

13 years agoCursors in-progress, broken
Howard Chu [Sun, 4 Sep 2011 18:59:32 +0000 (11:59 -0700)]
Cursors in-progress, broken

13 years agoUse cursor->mc_flags
Howard Chu [Sun, 4 Sep 2011 03:42:46 +0000 (20:42 -0700)]
Use cursor->mc_flags

13 years agoBegin reimplementing basic ops as cursor ops
Howard Chu [Sun, 4 Sep 2011 00:24:39 +0000 (17:24 -0700)]
Begin reimplementing basic ops as cursor ops

13 years agoAdd MDB_{FIRST,LAST}_DUP for cursor_get
Howard Chu [Sat, 3 Sep 2011 22:19:24 +0000 (15:19 -0700)]
Add MDB_{FIRST,LAST}_DUP for cursor_get

13 years agoFix mdb_split, fix MDB_GET_BOTH
Howard Chu [Sun, 4 Sep 2011 03:11:07 +0000 (20:11 -0700)]
Fix mdb_split, fix MDB_GET_BOTH

13 years agoFix mdb_split, fix MDB_GET_BOTH
Howard Chu [Sun, 4 Sep 2011 03:11:07 +0000 (20:11 -0700)]
Fix mdb_split, fix MDB_GET_BOTH

13 years agoCleanup midl, start documenting internals
Howard Chu [Fri, 2 Sep 2011 10:09:05 +0000 (03:09 -0700)]
Cleanup midl, start documenting internals

13 years agoFix conversion of IDL to range
Howard Chu [Sat, 3 Sep 2011 20:09:19 +0000 (13:09 -0700)]
Fix conversion of IDL to range

13 years agoFix log parsing, broken by 8d74f71
Howard Chu [Fri, 2 Sep 2011 20:22:41 +0000 (13:22 -0700)]
Fix log parsing, broken by 8d74f71

13 years agoTweak docs
Howard Chu [Fri, 2 Sep 2011 08:09:11 +0000 (01:09 -0700)]
Tweak docs

13 years agoTests updates for mdb
Howard Chu [Fri, 2 Sep 2011 00:03:57 +0000 (17:03 -0700)]
Tests updates for mdb

13 years agoAdd MDB support to configure and test framework.
Howard Chu [Thu, 1 Sep 2011 23:56:56 +0000 (16:56 -0700)]
Add MDB support to configure and test framework.

Does not update the tests themselves.

In configure --help, call it "mdb database backend" instead of something
with "memory-mapped" which could confuse somebody about a memory-only DB.

Conflicts:

servers/slapd/back-mdb/Makefile.in

13 years agoImport back-mdb
Howard Chu [Thu, 1 Sep 2011 23:52:53 +0000 (16:52 -0700)]
Import back-mdb

13 years agoMerge remote branch 'mdb4/master'
Howard Chu [Thu, 1 Sep 2011 23:50:26 +0000 (16:50 -0700)]
Merge remote branch 'mdb4/master'

13 years agoUgly-as-sin initial Windows port
Howard Chu [Thu, 1 Sep 2011 10:38:48 +0000 (03:38 -0700)]
Ugly-as-sin initial Windows port

13 years agoAPI cleanup, doxygen docs for public API
Howard Chu [Wed, 31 Aug 2011 11:58:40 +0000 (04:58 -0700)]
API cleanup, doxygen docs for public API

13 years agoCleanup, fix freelist alloc
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.

13 years agoTweak locks, fix race conditions
Howard Chu [Mon, 29 Aug 2011 10:45:13 +0000 (03:45 -0700)]
Tweak locks, fix race conditions

13 years agoReduce excessive memcpy in mdb_split
Howard Chu [Sun, 28 Aug 2011 00:32:24 +0000 (17:32 -0700)]
Reduce excessive memcpy in mdb_split

13 years agoFix mdb_split, tweak split_indx if space is tight
Howard Chu [Sat, 27 Aug 2011 23:53:58 +0000 (16:53 -0700)]
Fix mdb_split, tweak split_indx if space is tight

13 years agoFix update of big data items
Howard Chu [Fri, 26 Aug 2011 20:37:02 +0000 (13:37 -0700)]
Fix update of big data items

13 years agoFix free page reclaim and dbs table update
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

13 years agoMore debug, fix MDB_DEL_DUP
Howard Chu [Fri, 26 Aug 2011 02:45:08 +0000 (19:45 -0700)]
More debug, fix MDB_DEL_DUP

13 years agoMore debug output
Howard Chu [Thu, 25 Aug 2011 09:08:56 +0000 (02:08 -0700)]
More debug output

13 years agoAdd txn_reset / txn_renew
Howard Chu [Wed, 24 Aug 2011 08:45:42 +0000 (01:45 -0700)]
Add txn_reset / txn_renew

13 years agoFirst cut at DUPFIXED support
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.

13 years agoSet MINKEYS to 2
Howard Chu [Sat, 20 Aug 2011 00:20:56 +0000 (17:20 -0700)]
Set MINKEYS to 2

For better space utilization

13 years agoKeep re-using dpages instead of freeing them
Howard Chu [Fri, 19 Aug 2011 23:43:57 +0000 (16:43 -0700)]
Keep re-using dpages instead of freeing them

13 years agoAvoid cast-away-const for errstr[]
Hallvard B Furuseth [Fri, 19 Aug 2011 06:45:57 +0000 (08:45 +0200)]
Avoid cast-away-const for errstr[]

13 years agoWrap O_DSYNC in MDB_DSYNC.
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.

13 years agoSimplify: Replace IDL*_CMP() with CMP()
Hallvard B Furuseth [Fri, 19 Aug 2011 15:27:06 +0000 (17:27 +0200)]
Simplify: Replace IDL*_CMP() with CMP()

13 years agoMacro cleanup: Parenthesize, simplify, remove a ;
Hallvard B Furuseth [Fri, 19 Aug 2011 19:56:10 +0000 (21:56 +0200)]
Macro cleanup: Parenthesize, simplify, remove a ;

13 years agoDrop gcc extension ,##__VA_ARGS__. Add DPUTS().
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.

13 years agoFix cursor_set for dups
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

13 years agoSorted dups fix
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.

13 years agoDon't alloc in cursor_push/pop
Howard Chu [Fri, 19 Aug 2011 07:14:16 +0000 (00:14 -0700)]
Don't alloc in cursor_push/pop

13 years agoFix multi-page commits
Howard Chu [Fri, 19 Aug 2011 06:09:17 +0000 (23:09 -0700)]
Fix multi-page commits

13 years agoFix overflow page read
Howard Chu [Fri, 19 Aug 2011 04:58:22 +0000 (21:58 -0700)]
Fix overflow page read

13 years agoSub-DB init/dirty fixes
Howard Chu [Fri, 19 Aug 2011 03:28:02 +0000 (20:28 -0700)]
Sub-DB init/dirty fixes

13 years agoFix dupsort fetch
Howard Chu [Fri, 19 Aug 2011 02:30:54 +0000 (19:30 -0700)]
Fix dupsort fetch

13 years agoMore txn/cursor cleanup
Howard Chu [Fri, 19 Aug 2011 02:22:24 +0000 (19:22 -0700)]
More txn/cursor cleanup

13 years agoUpdate DB tables on commit even if no dirty pages
Howard Chu [Fri, 19 Aug 2011 00:38:39 +0000 (17:38 -0700)]
Update DB tables on commit even if no dirty pages

13 years agoAdd mdb_strerror(), mdb_env_set_flags()
Howard Chu [Tue, 16 Aug 2011 23:47:15 +0000 (16:47 -0700)]
Add mdb_strerror(), mdb_env_set_flags()

13 years agoallow silent commit of read-only TXNs
Howard Chu [Tue, 16 Aug 2011 21:23:44 +0000 (14:23 -0700)]
allow silent commit of read-only TXNs

13 years agoProtect err codes
Howard Chu [Tue, 16 Aug 2011 01:40:50 +0000 (18:40 -0700)]
Protect err codes