Commit Graph

52 Commits

Author SHA1 Message Date
Howard Chu
2e9f95cbac More for large multival attrs
Fix 2335285502
Use custom dupsort function, pass attributeDescription in so
it can use the actual matching rule for sorting.
2017-01-26 10:58:55 +00:00
Quanah Gibson-Mount
1df85d3427 Happy New Year! 2017-01-03 12:36:47 -08:00
Howard Chu
5e6aadd779 More for multival attrs
Fix id2entry_delete when deleting last multival entry in DB
2016-07-22 10:30:57 +01:00
Howard Chu
2335285502 More for large multival attrs
We can't persist the sorted flag since the sort order between
DB and attr schema don't necessarily agree
2016-04-01 18:49:59 +01:00
Howard Chu
76d9be0196 More for large multival attrs
Fix a4c7943d39 entry delete
Ignore when id2v table is empty
2016-02-05 21:59:43 +00:00
Howard Chu
a4c7943d39 Large multivalued attr support
Store attrs with a large number of values separately from the
main entry blob. Note - we need support for large DUPSORT values
for this to be generally usable.
2016-01-31 15:35:11 +00:00
Quanah Gibson-Mount
6c4d6c880b Happy New Year! 2016-01-29 13:32:05 -06:00
Howard Chu
4a9f4439be ITS#8360 tweak for LDAP_TXNs too 2016-01-26 13:39:53 +00:00
Howard Chu
afa9a9c3e0 Use batched write txns in refresh
Experimental - write 500 updates per txn instead of 1:1
2015-08-14 17:43:03 +01:00
Howard Chu
dcd0fd27f6 ITS#8040 use NOMETASYNC for lazycommit
not NOSYNC. Might be configurable in the future, but we don't
really want to add more config options at present
2015-04-09 15:56:22 +01:00
Quanah Gibson-Mount
1705fa7e55 Happy New Year 2015-02-11 15:36:57 -06:00
Howard Chu
a32a2da33a ITS#8040 experimental Lazy Commit 2015-02-02 10:50:22 +00:00
Howard Chu
d06f5e7c1b ITS#8007 Add maxentrysize config option 2014-12-15 21:35:48 +00:00
Howard Chu
766103a912 Fix mdb_txn cleanup 2014-09-19 19:22:14 +01:00
Howard Chu
32f05e96f7 Flesh out txn support
Only in back-mdb; back-bdb needs work but it's deprecated;
not worth the effort. In particular txn, retry after deadlocks
makes the whole thing too messy.
2014-09-15 23:48:23 +01:00
Leo Yuriev
c1f04881be ITS#7915 fix memory leaks in previous patch 2014-09-10 11:51:44 +01:00
Howard Chu
27f3ef2cfd ITS#7920 fix for slapacl
This needs to be streamlined in 2.5, current tool API is a mess.
2014-08-13 20:49:05 -07:00
Howard Chu
d8c060104d ITS#7915 fix mdb_entry_release
In server mode, make sure the entry was actually ours
2014-08-04 13:36:48 -07:00
Howard Chu
031640456b ITS#7903 preserve Sorted status of attrs 2014-07-22 20:24:58 -07:00
Ondrej Kuznik
01f698bce9 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?
2014-07-08 17:28:12 -07:00
Howard Chu
5cab6b77e4 ITS#7798 fix mdb_entry_decode() 2014-02-07 03:02:33 -08:00
Kurt Zeilenga
5c878c1bf2 Happy new year (belated) 2014-01-25 05:21:25 -08: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
3d5e7ef0d2 ITS#7581 more for prev commit 2013-05-23 11:45:05 -07:00
Howard Chu
daf62a0841 ITS#7540 reject undefined attrs 2013-03-19 13:32:42 -07: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
Kurt Zeilenga
0fd1bf30b8 Happy New Year 2013-01-02 10:22:57 -08: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
38a3317096 Use new Append support 2012-07-21 06:21:56 -07:00
Howard Chu
3423b56690 ITS#7146 fix prev commit 2012-02-02 03:26:53 -08:00
Howard Chu
9d3b1af2ff ITS#7146 check for ad_index overflow
Temporary fix...
2012-02-02 03:08:33 -08:00
Kurt Zeilenga
2bbf9804b9 Happy New Year! 2012-01-01 07:10:53 -08:00
Howard Chu
4f298d47af ITS#7099 fix mdb_entry_return for tool mode
Originally, overlays were not supposed to take effect in tool mode.
Apparently that's no longer the case...
2011-11-29 05:42:46 -08:00
Howard Chu
2c4d548206 ITS#7090 fix out-of-order slapadd 2011-11-25 00:25:52 -08:00
Howard Chu
4c17f31843 Keep some dn2i/id2e cursors open longer
So they can be reused, and avoid unnecessary page_searches
2011-10-06 19:14:22 -07:00
Howard Chu
8a8fb76cca Use MDB_APPEND mode where possible 2011-10-02 21:29:21 -07:00
Howard Chu
a1533520c1 Use MDB_RESERVE for id2entry_put 2011-10-02 10:06:06 -07:00
Howard Chu
c5ee5212fd Updated for mdb_txn_begin API change.
Nested txn stuff which we don't use.
2011-09-21 15:59:08 -07:00
Howard Chu
04311cc716 Fix entry_alloc with no attrs 2011-09-14 10:14:02 -07:00
Howard Chu
dfed6f77d7 More search optimization
Tighten up entry_alloc/entry_decode
Track parent nodes in idscopes
2011-09-13 16:58:38 -07:00
Howard Chu
fb264bf3e1 Tentative speedup - use plain ints for entry_encode/decode
Keep entries word-aligned. Yields ~10% speedup, but also 10% more space used.
May revert this if the space cost is unacceptable.
2011-09-13 15:24:50 -07:00
Howard Chu
c4ddf352ba Just use memcpy since we know it's non-overlapping 2011-09-12 11:05:38 -07:00
Howard Chu
16cbeb5e65 Fix - slapcat doesn't set op->o_hdr for tmpmemctx 2011-09-10 01:12:50 -07:00
Howard Chu
802a2ad4b2 Fix out-of-order slapadd 2011-09-09 22:29:19 -07:00
Howard Chu
54ced52c04 Keep cursor open for id2entry 2011-09-09 01:01:25 -07:00
Howard Chu
f72d65b77a Use tmpmem-based entries 2011-09-08 22:07:04 -07:00
Howard Chu
a3346f969f More error msgs 2011-09-06 17:29:42 -07:00
Howard Chu
6c8e4f2671 More search optimizations 2011-09-06 02:21:19 -07:00