Howard Chu
f5b809b2e9
Fix ce9bbd2
missing success return
2011-06-03 21:56:01 -07:00
Howard Chu
ce9bbd2df2
More for ITS#6961 - deadlock checking
2011-06-01 11:29:39 -07:00
Howard Chu
f5cb879aed
Fix for sparse ranges, get next ID from DB
...
Instead of iterating thru potentially many nonexistent IDs
2011-06-01 01:44:51 -07:00
Hallvard Furuseth
fac36dcba7
ITS#6932: Clean up strange asserts & nearby code.
...
Mostly found by Klocwork: Issues #213,298-300,331,342-343,374,390,410.
2011-05-05 15:55:29 +02:00
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