Commit Graph

119 Commits

Author SHA1 Message Date
Howard Chu
5b2bfec3b4 More for 907b9d4877
op.o_extra is only used with threading
2013-08-14 03:51:29 -07:00
Howard Chu
cec27aa517 Fix prev commit 2013-08-12 15:04:51 -07:00
Howard Chu
907b9d4877 Fixes for threaded indexer
Works now, but still 2x slower. Leave disabled.
2013-08-12 14:50:54 -07:00
Howard Chu
64f06d5acc ITS#7662 cleanup reader txn in mdb_entry_get() 2013-08-10 05:05:16 -07:00
Howard Chu
99e22a4366 ITS#7628 fix back-mdb txn refcount
If multiple ops used the same opinfo the refcount wasn't being decremented
2013-06-23 19:13:52 -07:00
Howard Chu
a3de7c29ae ITS#7604 fix modrdn, base-scope search 2013-05-24 11:08:25 -07:00
Howard Chu
3d5e7ef0d2 ITS#7581 more for prev commit 2013-05-23 11:45:05 -07:00
Howard Chu
a8c1438688 ITS#7577 more alias deref checks 2013-05-17 09:15:36 -07:00
Howard Chu
201ddbe3e4 ITS#7577 more for previous commit 2013-04-28 12:47:14 -07:00
Howard Chu
fb537d747c ITS#7577 alias fixes 2013-04-28 12:25:58 -07:00
Howard Chu
8cc61d8dbd attrdb fixes 2013-04-05 03:03:07 -07:00
Howard Chu
daf62a0841 ITS#7540 reject undefined attrs 2013-03-19 13:32:42 -07:00
Howard Chu
02b22e7e59 ITS#7542, more for ITS#7432
typos in quicksort
2013-03-18 11:43:47 -07:00
Howard Chu
bc1d4424c5 Define MDB_WRITES_PER_COMMIT, default to 500
The former default of 1000 may fail for DBs with many indices.
2013-02-23 19:04:13 -08:00
Howard Chu
03b0319b46 ITS#7488 really turn off threaded indexing code 2013-02-19 18:20:17 -08:00
Howard Chu
f827aa683e ITS#7527 add missing error checks for corrupt index 2013-02-19 18:19:47 -08:00
Howard Chu
9f227f7661 More for dn2id_upgrade
handle 0-length suffix
2013-02-10 00:17:51 +00:00
Howard Chu
5c91a27277 Add error checks to prev commit 2013-02-09 19:50:08 +00:00
Howard Chu
2bbee4bb23 Add mdb_dn2id_upgrade
Check if upgrade is needed in mdb_db_open()
Run from tool_reindex. Upgrade must not be interrupted.
2013-02-09 19:38:42 +00:00
Howard Chu
33c98df18e More explicit logging if mdb_txn_commit fails
Change LDAP_DEBUG_TRACE to LDAP_DEBUG_ANY.
Add log msg if it wasn't being logged before.
2013-02-02 05:31:39 -08:00
Howard Chu
a8352c03b3 ITS#7473 fix b1a6f6980f
uninit'd size in dn2id_walk, bogus pagedresults
2013-01-29 17:15:09 -08:00
Howard Chu
b1a6f6980f ITS#7473 Scope-based searches
Walk subtree if number of subtree entries is smaller than
number of index candidates.
2013-01-26 16:20:49 -08:00
Howard Chu
a650568ef2 ITS#7473 Add mdb_dn2id_walk() to walk subtree
Non-recursive tree walker.
2013-01-26 16:19:38 -08:00
Howard Chu
ee8a897ff8 ITS#7473 Setup for subtree entry counts 2013-01-26 16:18:58 -08:00
Howard Chu
2f53035a51 ITS#7496, more for ITS#7483
Missing entries need to be checked at runtime too, not just slapcat.
Apparently some people will still try to run slapd even after slapadd
tells them their DB load was invalid.
2013-01-22 12:34:40 +00:00
Howard Chu
fb0b0688b0 ITS#7473 check DN scope before fetching id2e
This is only a 10% gain, but still worth having for now.
2013-01-11 03:15:59 -08:00
Howard Chu
acec27ec94 ITS#7488 disable threaded indexer for now
No time to find the bug at the moment.
There's no performance benefit anyway.
2013-01-09 09:07:29 -08:00
Kurt Zeilenga
0fd1bf30b8 Happy New Year 2013-01-02 10:22:57 -08:00
Howard Chu
e4ec2be93d Better handling of missing entries
Treat zero-length entries properly (as missing entries) in entry_next()
and entry_get_int().
2012-12-28 11:26:26 -08:00
Howard Chu
d3087229d5 Get MDB txn before acquiring a CSN
Since MDB writes are fully serialized in txn_begin, we can use CSNs as
commit sequence numbers, not just change sequence numbers. This will
prevent most instances of out-of-order writes, so syncprov will almost
never need to transmit a change without a cookieCSN. (Out-of-order is
still possible, if the write was received via syncrepl.)
2012-12-13 07:13:39 -08:00
Howard Chu
a2cfb99c52 ITS#7469 fix slapcat 2012-12-10 17:32:44 -08:00
Howard Chu
fe9e1113ae Rename mdb_open/close mdb_dbi_open/close 2012-12-03 17:06:31 -08:00
Howard Chu
c0f7090cac Plug slapindex memleak 2012-12-03 11:39:14 -08:00
Howard Chu
aa1ae03caf Rename libmdb to liblmdb 2012-11-30 12:59:18 -08:00
Howard Chu
e51aff55e6 Rename mdb.h to lmdb.h 2012-11-30 12:35:05 -08:00
Howard Chu
a061f2192e ITS#7452 fix typo in envflags 2012-11-26 16:22:27 -08:00
Howard Chu
970e7f8199 ITS#7416 make sure to reopen attr DBs after env reopen 2012-10-11 16:45:42 -07:00
Quanah Gibson-Mount
6a435736fb Fix MDB objectClass so that MDB will load 2012-09-26 16:48:57 -07:00
Howard Chu
d426cafaca More for envflags
If trying to alter a non-resettable flag, just close/reopen the env.
2012-09-25 04:37:29 -07:00
Howard Chu
dc9ef835c5 Add envflags for MDB config
allows setting writemap and some other useful flags
2012-09-25 04:31:37 -07:00
Howard Chu
3e47e825fd ITS#7391 more for ab04c50a32 2012-09-14 12:53:47 -07:00
Howard Chu
bdef02832e ITS#7386 close read txn in reindex commit 2012-09-12 13:37:22 -07:00
Howard Chu
54a111907b More for 38a3317096
update mdb_tool_idl_add prototype
2012-09-04 04:44:20 -07:00
Howard Chu
c9c24fbafe More for ea248dacf4
Fix search_aliases invocation
2012-09-04 04:39:17 -07:00
Howard Chu
bf10bdb03a Fix typos in prev commit 2012-08-27 14:27:04 -07:00
Howard Chu
ea248dacf4 Don't decode entries until we know they're in scope 2012-08-27 14:08:06 -07:00
Howard Chu
11cf13bf9d Fix slapadd -q -w double-free 2012-08-17 13:38:47 -07:00
Howard Chu
e5864927ae Fix online reconfig
maxreaders/maxsize was not re-opening because cleanup call was missing
online indexer should abort txn after index failure
2012-07-26 08:45:39 -07:00
Howard Chu
2265d2bac8 Append tweak: must init mdb->mi_nextid
Otherwise duplicate entries aren't detected
2012-07-22 15:44:11 -07:00
Emily Backes
c453a236fc Update name information 2012-07-22 07:08:35 -07:00