Hallvard Furuseth
e2e5a8504d
klocwork#255 Fix sprintf(%d, u_int32_t)
2011-05-05 13:51:36 +02:00
Howard Chu
31175da39e
More for ITS#6853, check for trickle thread not yet started
2011-03-16 17:30:24 +00:00
Howard Chu
2399e2536f
More for 6853, add condvar for end condition
2011-03-11 22:16:13 +00:00
Howard Chu
7dd1089706
ITS#6853 wait for trickle task to quit
2011-03-04 23:54:10 +00:00
Howard Chu
bfa05a5e32
More for #6561 - delete returns NO_SUCH_ATTRIBUTE, not TYPE_OR_VALUE_EXISTS
2011-03-04 07:54:06 +00:00
Howard Chu
07147abadc
Fix prev commit
2011-03-04 07:22:15 +00:00
Howard Chu
bc2b9f54f7
ITS#6845 don't muck with save_attrs for index deletes, use a new array
2011-02-28 10:17:03 +00:00
Ralf Haferkamp
24eb35f9b7
fix bdb_cache_deref() definition to match prototype
2011-02-23 15:51:09 +00:00
Howard Chu
4f2949b1ce
Use refcnt instead of keeping entry locked in Add response
2011-02-23 03:53:21 +00:00
Hallvard Furuseth
2a9ef9badc
Silence gcc -Wformat: Cast printf %p arg to void*
2011-02-04 21:24:13 +00:00
Ralf Haferkamp
35c2869e44
ITS#6794 Fixed slapadd -q for glued databases
...
Cleanup memory/threads more thoroughly in bdb_tool_entry_close() so that a
subsequent bdb_tool_entry_open() (e.g. for a glued database) can setup
things correctly again.
2011-01-21 17:11:21 +00:00
Kurt Zeilenga
966cef8c9a
Happy New Year
2011-01-05 00:42:37 +00:00
Pierangelo Masarati
b672d8535d
make sure initialization is only tried once; improve error messages
2011-01-02 15:06:11 +00:00
Hallvard Furuseth
abf7f2efce
ITS#6758 back-bdb: Delay setting sr->sr_entry until we know it will be used
2010-12-31 00:04:38 +00:00
Hallvard Furuseth
d2b024be4a
ITS#6758 Reset some SlapReply flags & data.
...
Reset data more consistenlty. When resetting sr_entry after sending
data, reset sr_flag as well. Reset rs_attrs and Extended Operation
oid/data after setting and sending them.
2010-12-30 23:55:07 +00:00
Hallvard Furuseth
cd6e9156e7
Remove lint (unused vars/labels/funcs/default:s)
2010-12-30 23:34:55 +00:00
Hallvard Furuseth
c9e85af35c
ITS#6759: assert;Debug -> Debug;assert
2010-12-30 23:19:02 +00:00
Howard Chu
56888eac30
Move assertion checking to slap_compare_entry()
2010-12-23 21:53:05 +00:00
Howard Chu
9bb47f74ae
ITS#6753 use slap_compare_entry()
2010-12-23 21:45:36 +00:00
Howard Chu
0393fe8974
Cleanup for #6660
2010-12-23 04:40:57 +00:00
Howard Chu
f58a646ad6
ITS#6660 preliminary fix. debug additions need to be cleaned up.
2010-12-23 00:16:19 +00:00
Hallvard Furuseth
720aa4b77e
Plug mutex/rwlock leaks (destroy them)
2010-12-20 10:57:06 +00:00
Pierangelo Masarati
40831ba54f
do not add hasSubordinates if already present (fixes ITS#6712 for back-bdb/hdb, other backends may need work)
2010-11-18 11:33:47 +00:00
Pierangelo Masarati
55f88b5b49
do not assume sr_err == LDAP_SUCCESS; cleanup
2010-09-30 14:26:56 +00:00
Pierangelo Masarati
79d4e4cf6a
add support for ADD_IF_NOT_PRESENT and SOFTDEL internal modification types (ITS#6561)
2010-09-07 13:21:20 +00:00
Pierangelo Masarati
eb11ba008c
let the error propagate to overlays (ITS#6633)
2010-08-29 15:35:47 +00:00
Howard Chu
3b2cef17eb
ITS#6577 real fix: keep dn2id cursor open until we re-acquire lock
...
on entryInfo, otherwise BDB locks in reader txn are released too soon
2010-07-01 16:38:32 +00:00
Howard Chu
f12290c64f
move slap_graduate_commit_csn() to after entry lock is released
2010-06-30 00:00:59 +00:00
Howard Chu
bdf52f4fc4
ITS#6577 potential fix, found using valgrind/drd. please test.
2010-06-20 21:28:04 +00:00
Pierangelo Masarati
ba507dc27b
try harder to compute hasSubordinates (ITS#6549)
2010-05-18 02:18:48 +00:00
Kurt Zeilenga
3dadeb3efe
happy belated New Year
2010-04-13 22:17:29 +00:00
Pierangelo Masarati
81469d0ff1
more on ITS#6507
2010-04-08 19:51:18 +00:00
Howard Chu
c99d8465b7
ITS#6501 zero lockobjs
2010-03-31 06:22:06 +00:00
Pierangelo Masarati
d85e24dfa3
fix return
2010-02-17 20:08:07 +00:00
Ralf Haferkamp
5ceb2cd4e0
ITS#6467, use memcpy instead for strcpy when copying across array
...
boundaries. To account for stricter checks when using -D_FORTIFY_SOURCE=2
with GCC 4.5
2010-02-15 15:25:47 +00:00
Ralf Haferkamp
bca52e1b18
ITS#6469, don't touch op_attrs when updatedn is modifying contextCSN
2010-02-05 11:49:49 +00:00
Pierangelo Masarati
0cf528630f
implement support for selective iteration in slaptools (ITS#6442)
2010-01-18 15:00:40 +00:00
Howard Chu
b8a1da95a2
dn2id_lock is no longer needed
2010-01-11 22:14:15 +00:00
Hallvard Furuseth
ca563787ad
Silence "maybe uninitialized" warning (eprev after 0 iterations, cannot happen)
2009-11-30 14:00:18 +00:00
Howard Chu
f685d9e78b
Clean up prev commit
2009-11-04 06:09:51 +00:00
Howard Chu
f6983802e2
More for ITS#6360
2009-11-04 05:52:04 +00:00
Howard Chu
0ecb68e02d
ITS#6360 fix cache cursize count
2009-11-04 00:47:45 +00:00
Hallvard Furuseth
dc26fb37eb
Fix previous commit: backslash-space-newline -> backslash-newline
2009-10-21 20:15:15 +00:00
Ralf Haferkamp
96ce821037
ITS#6341 removal of last entry from cache caused corruption in the lru list
2009-10-20 14:41:09 +00:00
Pierangelo Masarati
49b1729ad7
don't dereference pointer in case of error
2009-10-19 23:41:11 +00:00
Pierangelo Masarati
b928fa97d8
silence warning
2009-08-19 13:02:54 +00:00
Pierangelo Masarati
8da69a9249
silence warnings
2009-08-19 12:55:15 +00:00
Pierangelo Masarati
f3cdcadf89
wrap gmtime for reentrancy (ITS#6262)
2009-08-18 23:48:15 +00:00
Pierangelo Masarati
5c62c82e00
more about ITS#6243
2009-08-17 23:05:48 +00:00
Howard Chu
016c518652
ITS#6230 fix typos
2009-07-27 18:54:56 +00:00
Howard Chu
474991afdf
ITS#6222 dncachesize defaults to 0 == unlimited
2009-07-25 07:13:50 +00:00
Ralf Haferkamp
d430fa0346
error out when adding multiple olcIndex values for the same attribute (ITS#6196)
2009-07-03 14:29:40 +00:00
Howard Chu
53f8b761f1
More for ITS#6177
2009-06-19 07:11:01 +00:00
Howard Chu
68e252c9a9
ITS#6177 proposed fix, please test
2009-06-19 02:06:58 +00:00
Howard Chu
59a29c9801
ITS#6176 silently raise dncache to cachesize if smaller
2009-06-18 00:16:30 +00:00
Howard Chu
29be892cc1
Revert 1.274
2009-05-11 22:26:12 +00:00
Howard Chu
7ab16ae6c2
ITS#6103 send response on abandon
2009-05-11 04:30:36 +00:00
Howard Chu
6bd1861101
Fix c_leaves count
2009-05-08 06:37:05 +00:00
Howard Chu
1a8e3f9e3e
More for prev commit
2009-05-08 04:48:03 +00:00
Howard Chu
7f9a60ae7a
More for prev commit: delete bdb_cache_info(), must use cache_find_id().
...
Fixed cache.c_cursize counting.
2009-05-06 13:57:01 +00:00
Howard Chu
64dc274655
ITS#6095 experimental fix: avoid purging other cases of in-use EntryInfos,
...
avoid using purged EntryInfos that have not yet been fully unlinked.
2009-05-06 08:33:26 +00:00
Howard Chu
650ced22c8
More for ITS#5326 - don't free ora_e->e_name if same as o_req_dn
2009-05-05 21:54:01 +00:00
Howard Chu
a7fe6266d8
Don't do alock recovery in readonly mode since we didn't do BDB recovery
2009-05-03 00:49:35 +00:00
Howard Chu
87e2ad347b
Fix typo in prev commit
2009-05-03 00:47:25 +00:00
Howard Chu
10baa9a60a
ITS#6088 entryinfo cleanup
2009-05-03 00:30:20 +00:00
Howard Chu
6e27fa5076
ITS#6074 freeing already-freed EntryInfos...
2009-05-01 04:36:39 +00:00
Howard Chu
c7142fdec5
Don't underflow malloc'd memory in hdb_fix_dn()
2009-05-01 04:26:44 +00:00
Howard Chu
cfb12f536b
ITS#6056 pagedresults stacked control is not overlay-friendly, add
...
slap_add_ctrls() function
2009-04-15 10:34:24 +00:00
Howard Chu
1d16ee5622
One more tweak for #5860
2009-03-19 06:06:37 +00:00
Howard Chu
65c24bdb1f
More for #5860 - if the cache blew past the maxsize, bring it all the way
...
back down to size.
2009-03-18 18:18:40 +00:00
Howard Chu
0121f8c01d
More for ITS#5860
2009-03-18 11:21:53 +00:00
Howard Chu
7f2f9c4b30
Cleanup prev commit
2009-03-18 09:44:20 +00:00
Howard Chu
cc950c70d1
More for ITS#5860, always check cache sizes
2009-03-18 08:52:38 +00:00
Howard Chu
ba75a865d7
ITS#6012 don't abort NULL txns (blind fix)
2009-03-17 18:09:40 +00:00
Howard Chu
df64b0573c
More for prev commit - fill in other opattrs when creating stub
2009-03-07 02:46:10 +00:00
Howard Chu
b88e792a7f
Revert ITS#3616 patch, obsoleted by ITS#4916 / ITS#6006
2009-03-07 02:28:01 +00:00
Howard Chu
89cfbe3b6e
ITS#6006 dummy entry needs objectclass attr. (Previous fix to ITS#4961
...
was incomplete. This patch obsoletes the patch for ITS#3616.)
2009-03-07 02:23:20 +00:00
Howard Chu
e3e7a22b5d
Must use txns everywhere, otherwise it will deadlock
2009-03-05 21:59:05 +00:00
Howard Chu
6d1aa51604
ITS#5860 - more for entry cache counts
2009-03-02 18:35:28 +00:00
Howard Chu
7198869342
More for prev - keep eifree at a reasonable number
2009-03-02 08:33:33 +00:00
Howard Chu
8ba8500ff1
ITS#5860 - free 10*minfree DN cache entries instead of just 1 per pass
2009-03-02 08:27:20 +00:00
Howard Chu
288e99cb08
ITS#5860 - NO_CACHE entries were not being counted when they were
...
converted to regular cached entries (so the entry cache grew beyond
the configured size)
2009-03-02 08:26:30 +00:00
Howard Chu
225aa9f526
More for prev
2009-03-02 07:57:18 +00:00
Howard Chu
03aa595908
ITS#5457 cleanup. If we ever go back to refcounting the entry cache,
...
this will matter.
2009-03-02 07:54:01 +00:00
Howard Chu
0693557161
ITS#5961 fix prev commit
2009-02-19 22:12:23 +00:00
Howard Chu
168fa346cc
Cleanup prev commit
2009-02-18 00:17:59 +00:00
Howard Chu
6f4b2cc66e
ITS#5956 only retry attaching to SHM once
2009-02-18 00:14:16 +00:00
Pierangelo Masarati
7cd382d931
build entry's pretty DN from parent's (ITS#5326)
2009-02-05 18:44:52 +00:00
Pierangelo Masarati
260fd357df
fix structuralObjectClass modification (glue, ITS#5921; w/ relax, ITS#5792)
2009-02-04 22:36:49 +00:00
Howard Chu
a96538f36c
ITS#5860 don't free entryinfo of entries that are validly in the cache
2009-01-26 20:59:10 +00:00
Howard Chu
09a369c4ea
More for ITS#5860
2009-01-26 20:36:17 +00:00
Howard Chu
64d0cb9cf6
ITS#5859 fix IDL cache for hdb DB with empty suffix
2009-01-26 10:20:51 +00:00
Howard Chu
a59bdb2d5d
ITS#5860 more for prev commit
2009-01-25 22:43:31 +00:00
Howard Chu
fe70cdf2ea
ITS#5864 - require BDB >= 4.6 for trickle task
2009-01-24 03:43:08 +00:00
Howard Chu
417d105c29
ITS#5860 more ID_NOCACHE fallout
2009-01-24 00:55:44 +00:00
Kurt Zeilenga
4af9eb9715
Update copyright notices
2009-01-22 00:40:04 +00:00
Pierangelo Masarati
e0ad0fbd8d
honor RFC4528 assertion control for LDAP add operations (ITS#5861)
2008-12-20 22:49:53 +00:00
Ralf Haferkamp
760660a4a2
Remove unneeded locking. Don't wait for memp_trickle to complete,
...
loosing an signal doesn't hurt in this case.
2008-11-28 16:09:40 +00:00
Howard Chu
f6ae9c9c9f
Fix typo in prev commit
2008-11-22 22:41:11 +00:00
Howard Chu
1d746e552a
Initialize bli_flag
2008-11-22 21:08:38 +00:00