Commit Graph

31 Commits

Author SHA1 Message Date
Leo Yuriev
67a65ec701 ITS#8011: few corrections for lmdb-backend;
dn2id.c:
  + assertion for mdb_id2l_insert() result;
  - unnecessary assignment;

search.c:
  - unused variable 'first';
  + range-check for mdb_idl_search() result;
2015-01-04 07:41:07 +00:00
Leo Yuriev
b0e46fb9f9 ITS#7965 mdb_dn2id
heap corruption due to returning a reference to a local variable
2014-10-14 13:15:16 +01:00
Howard Chu
9a8cb6091a ITS#7702 better fix
Check for duplicate scopes in search_aliases, not later.
2014-08-28 18:21:21 +01:00
Howard Chu
f42c7c6bbc Revert "ITS#7702 fix results with aliases"
This reverts commit cac00c6a97.
2014-08-28 17:51:46 +01:00
Howard Chu
cac00c6a97 ITS#7702 fix results with aliases
Aliases pointing within the original search scope could cause
the same entry to be returned multiple times. Check for subtree
scope and duplicate scopes.
2014-08-26 20:07:40 +01:00
Howard Chu
5a08b66141 ITS#7705,#7800 fix prev commit
Better check for missing IDs
2014-05-15 21:27:21 -07:00
Howard Chu
437f21b16e ITS#7705,#7800 fix back-mdb pagedResults search
mdb_idscopes was remembering the IDs of every entry it checked;
it should only have been saving the IDs of entries that were
actually in the search scope. The extra entries filled the scopes
array, causing a loop searching for a parent entry that was
never inserted.
2014-05-15 21:06:17 -07:00
Kurt Zeilenga
5c878c1bf2 Happy new year (belated) 2014-01-25 05:21:25 -08:00
Howard Chu
c82dcab9bd ITS#7720 don't do ptr arithmetic on void *s 2013-10-08 10:40:51 -07:00
Howard Chu
a3de7c29ae ITS#7604 fix modrdn, base-scope search 2013-05-24 11:08:25 -07:00
Howard Chu
a8c1438688 ITS#7577 more alias deref checks 2013-05-17 09:15:36 -07:00
Howard Chu
fb537d747c ITS#7577 alias fixes 2013-04-28 12:25:58 -07: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
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
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
Kurt Zeilenga
0fd1bf30b8 Happy New Year 2013-01-02 10:22:57 -08:00
Howard Chu
38a3317096 Use new Append support 2012-07-21 06:21:56 -07:00
Howard Chu
8aa05e920a ITS#7302 fix mdb_dn2id_delete 2012-06-22 07:10:56 -07:00
Howard Chu
71843da2a7 MDB_APPEND should only be used in tool mode 2012-04-09 05:18:44 -07:00
Kurt Zeilenga
2bbf9804b9 Happy New Year! 2012-01-01 07:10:53 -08:00
Howard Chu
a642e3eb90 Check for NULL DN in debug msg 2011-11-09 02:20:26 -08:00
Howard Chu
6b679875ae Fix u_intX -> uintX 2011-11-08 19:06:46 -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
0e96868e8e Fix onelevel search from last commit 2011-09-14 09:54:58 -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
Hallvard Furuseth
141a43c1ee Tweak back-mdb integer types to match libmdb.
Also do not cast between berval and MDB_val.  That breaks when
sizeof(berval.bv_len) != sizeof(MDB_val.mv_size).
2011-09-12 19:07:12 +02:00
Howard Chu
6c8e4f2671 More search optimizations 2011-09-06 02:21:19 -07:00
Howard Chu
7afc68c0ec Cursor updates 2011-09-05 01:27:16 -07:00
Howard Chu
0ba4206ed9 Import back-mdb 2011-09-01 17:00:26 -07:00