Commit Graph

364 Commits

Author SHA1 Message Date
Kurt Zeilenga
2bbf9804b9 Happy New Year! 2012-01-01 07:10:53 -08:00
Howard Chu
68ee165fb5 ITS#7115 blocked writers should not interfere with pool pause 2011-12-21 01:24:23 -08:00
Howard Chu
a4df185adf ITS#7019 fix dsa-specific attr check for Persist updates 2011-11-07 15:25:07 -08:00
Howard Chu
49c6ddf99c Revert "ITS#6981 don't free entries prematurely"
This reverts commit 877ebdf5ef.
2011-11-02 09:25:45 -07:00
Howard Chu
877ebdf5ef ITS#6981 don't free entries prematurely 2011-11-01 16:24:10 -07:00
Howard Chu
f502695c81 Revert "ITS#6981 don't flush entries until after cleanup callbacks"
This reverts commit b68fa5ecd7.
2011-11-01 16:14:12 -07:00
Howard Chu
b68fa5ecd7 ITS#6981 don't flush entries until after cleanup callbacks 2011-11-01 13:17:06 -07:00
Howard Chu
d69ca65afd ITS#7060 fix str2result return code parsing 2011-11-01 12:59:36 -07:00
Howard Chu
9cb0386851 ITS#7062 call response callbacks even if connection was dropped 2011-11-01 11:02:00 -07:00
Hallvard Furuseth
074fe6c298 ITS#6763,7053 Cleanup after sending entry/searchref.
slap_send_search_entry(), slap_send_search_reference(): Never skip
the cleanup code.  Sending an entry did on sizeLimitExceeded/busy.
Sending a ref dropped rs_flush_entry() on error.
2011-10-24 01:06:42 +02:00
Pierangelo Masarati
d8f97f58e2 ITS#6899
tag read entry response control value with [APPLICATION 4] (SearchResultEntry)
2011-06-08 22:19:09 +02:00
Hallvard Furuseth
42cb7f06f1 cleanup: Rename rs_ensure_entry_modifiable().
The name rs_entry2modifiable() is more reasonably sized.
For now, leave behind a macro rs_ensure_entry_modifiable in proto-slap.h.
2011-01-28 16:33:55 +00:00
Hallvard Furuseth
a67100a7c1 ITS#6758 whitespace fix for rev 1.350 2011-01-21 12:09:47 +00:00
Hallvard Furuseth
ecc19f03a0 ITS#6758 Remove comment; broken rs.sr_type idea 2011-01-21 11:43:20 +00:00
Hallvard Furuseth
fb6aa52870 Support $NO_RS_ASSERT. Add comments.
Use a private rs_assert_() helper function instead of libc assert.
2011-01-21 11:41:45 +00:00
Kurt Zeilenga
966cef8c9a Happy New Year 2011-01-05 00:42:37 +00:00
Hallvard Furuseth
bdb078a778 ITS#6758 Reset dangerous REP_ENTRY_* flags.
If SlapReply.sr_un cannot contain an entry but does or soon may
contain another member than sru_search: Ensure nothing will see
leftover REP_ENTRY_* flags and try to clean up the "entry" there.
2010-12-31 20:53:17 +00:00
Hallvard Furuseth
9467059b0b ITS#6758 fix/add slap_send_search_entry() comments 2010-12-31 19:57:53 +00:00
Hallvard Furuseth
a4c2d54127 ITS#6758 result.c:Use rs_*(). Frees entries earlier.
For readability, use rs_flush_entry() where slap_send_search_entry() and
slap_send_search_reference() release entries before network operations.

This change also frees entires marked MUSTBEFREED earlier.
2010-12-31 18:14:31 +00:00
Hallvard Furuseth
f4a3304477 ITS#6758 Use rs_*() to manage SlapReply entries.
Some noop changes + fixes entry leaks and REP_ENTRY_MODIFIABLE flag leaks.
2010-12-31 17:55:36 +00:00
Hallvard Furuseth
cb15a4c687 ITS#6758 rs_reinit() += slap_reply_t parameter 2010-12-31 09:45:16 +00:00
Hallvard Furuseth
5c3f806fca ITS#6758 Add rs_reinit(), rs_flush_entry() 2010-12-30 23:32:07 +00:00
Hallvard Furuseth
ea2b675dca ITS#6758 Add rs_assert*, RS_ASSERT, USE_RS_ASSERT 2010-12-30 23:29:46 +00:00
Hallvard Furuseth
c9e85af35c ITS#6759: assert;Debug -> Debug;assert 2010-12-30 23:19:02 +00:00
Pierangelo Masarati
938778ffd9 free controls, if needed (ITS#6629) 2010-08-29 17:23:08 +00:00
Kurt Zeilenga
3dadeb3efe happy belated New Year 2010-04-13 22:17:29 +00:00
Hallvard Furuseth
1a7b18bcca ITS#5340: REP_ENTRY_MUSTFLUSH, rs_replace_entry(), rs_ensure_entry_modifiable() 2009-12-10 00:07:34 +00:00
Howard Chu
2fd6d4749a Cleanup pointless compare in debug msgs 2009-11-21 21:34:33 +00:00
Howard Chu
dc86747a4d Fix typo in 1.250 fake sorted results control 2009-07-13 02:42:38 +00:00
Hallvard Furuseth
5b98495d5c ITS#6101, reset rs->sr_rspdata in send_ldap_disconnect() 2009-07-07 22:30:28 +00:00
Howard Chu
1ca5fe851f ITS#5836, #6089 fix c_writers counting 2009-07-01 03:01:08 +00:00
Hallvard Furuseth
8bdfd2edbb ITS#6103: rev 1.331 followup for LDAP_CONNECTIONLESS 2009-06-04 22:06:37 +00:00
Howard Chu
aa9e241581 ITS#6111 connection_state_closing() -> connection_valid() 2009-05-14 04:03:23 +00:00
Howard Chu
9767c87531 Partially revert prev commit, leave rs->sr_err == SLAPD_ABANDON 2009-05-11 04:23:51 +00:00
Howard Chu
2889cc9b1d ITS#6103 send cancelled response back to client 2009-05-11 04:16:57 +00:00
Howard Chu
4908009ed3 Don't write out abandoned results 2009-03-14 06:47:43 +00:00
Howard Chu
f2cc7e8a0a ITS#5836, add writetimeout keyword for timing out hung writers 2009-03-10 00:42:10 +00:00
Pierangelo Masarati
d36099aa62 cleanup (related to ITS#5760) 2009-02-15 22:16:21 +00:00
Howard Chu
673405bc2e More for prev commit 2009-01-25 22:06:24 +00:00
Howard Chu
01cf75383e Fix prev commit 2009-01-25 21:15:45 +00:00
Howard Chu
ef846c9105 More for prev commit 2009-01-25 03:04:43 +00:00
Howard Chu
b69b2d2f69 More for prev commit 2009-01-25 01:53:32 +00:00
Kurt Zeilenga
4af9eb9715 Update copyright notices 2009-01-22 00:40:04 +00:00
Howard Chu
13ddc561d8 Fix prev commit - check for c_state == CLOSING first 2009-01-15 21:31:58 +00:00
Howard Chu
1a171b07d3 ITS#5835 fix connection teradown when there are waiting writers 2009-01-15 20:41:40 +00:00
Hallvard Furuseth
93c75ea669 Cleanup: Move snprintf preformatting into unused Statslog() argument 2008-10-28 22:27:53 +00:00
Pierangelo Masarati
ffb66f41bb anticipate Statslog to avoid using dangling pointers (ITS#5775) - HEADS-UP: now 'ENTRY dn=' may appear also in case the PDU can't be sent 2008-10-28 22:02:01 +00:00
Pierangelo Masarati
515733a656 make sure sr_entry is not used if unset (ITS#5742) 2008-10-17 00:03:17 +00:00
Hallvard Furuseth
7b3bdf2185 Warning cleanup: signed meets unsigned. ber_flatten2() returns -1 on
error, not LBER_ERROR.
2008-10-13 10:18:15 +00:00
Pierangelo Masarati
a0e3e68a02 allow controls deletion to be deferred; pass response controls back to frontend in extops (ITS#5711) 2008-09-27 10:06:43 +00:00