Commit Graph

11491 Commits

Author SHA1 Message Date
Howard Chu
b849ab00f8 ITS#7149 pick up definition of STRLENOF 2012-03-30 03:22:40 -07:00
Howard Chu
ac12129465 ITS#7182 silence warning about AVL_APPLY type 2012-03-29 07:06:16 -07:00
Ondrej Kuznik
8452b4ccde ITS#7182 Expose the peer address of a connection. 2012-03-29 07:01:15 -07:00
Ondrej Kuznik
af09702199 ITS#7182 Expose the URI used for this connection. 2012-03-29 07:01:12 -07:00
Ondrej Kuznik
fa3a79c1b9 ITS#7182 Expose the connection flags.
The flags are exposed using a multivalued parameter so that other
connection flags (like back-meta's) could be exported without needing
additional code.
2012-03-29 07:01:10 -07:00
Ondrej Kuznik
cfc947dd54 ITS#7182 Enable operation and connection monitoring.
Reintroduce the cn=connections entry exactly as it were before ITS#7182.
2012-03-29 07:01:07 -07:00
Ondrej Kuznik
979e0f00b9 ITS#7182 Rework monitor registration.
Letting back-monitor create the subsystem entries is much more readable
than doing this manually.

Only the database is registered if needed (chain overlay has to be
updated to cope with this), the cn=Connection entry is removed in this
patch to be reinstated in the following one as part of the correct
subsystem.

The owner (overlay mostly) should already know the target subtree DN,
therefore the filter machinery can go away too.
2012-03-29 07:01:04 -07:00
Ondrej Kuznik
7c40b6e904 ITS#7182 Keep connection IDs for monitoring purposes. 2012-03-29 07:00:56 -07:00
Howard Chu
f6b8103b78 ITS#7149 more for back-perl, always use bv_len when available 2012-03-29 06:11:55 -07:00
Howard Chu
ab481c0f74 ITS#7149 fix back-shell/back-perl Modify with binary values 2012-03-29 06:05:15 -07:00
HIRABAYASHI Satoshi
92d439a0dd ITS#7218 fix sessionlog usability check 2012-03-28 02:48:03 -07:00
Ondrej Kuznik
be9585d0ed ITS#7182 Maintain the operation counts.
Currently ldap_back_default_rebind cannot access the ldapinfo structure.
Being a configurable callback, not letting it monitor when a change
might be disruptive feels safer.
2012-03-27 04:28:37 -07:00
Ondrej Kuznik
fb2d235615 ITS#7182 Introduce the variables for operation monitoring.
Only completed operations are considered for now, this can be changed
if needed.
2012-03-27 04:28:26 -07:00
Ondrej Kuznik
7baac1d9b4 ITS#7182 Add mss_private for monitor subsystem.
During initialization (and elsewhere), the subsystems have no way of
storing local data. While embedding them inside a larger strusture and
breaking out when needed (like the current back-ldap monitoring code
currently does) works, it certainly does not add to readability.

Notice that there is still no way to unregister an active subsystem.
This patch does not attempt to include such functionality while it might
actually be needed with the advent of SLAP_CONFIG_DELETE.
2012-03-27 04:28:16 -07:00
Howard Chu
dc0ef72dff Cleanup prev commit 2012-03-27 01:53:41 -07:00
Ondrej Kuznik
122faa5bd9 (ITS#6987) Consider only same attribute siblings for Cft_misc.
For all other ce_types it holds that each is represented by one
attribute, making ce_type matching for X-ORDERED siblings equivalent to
how back-ldif handles them. Cft_misc is means "all other types", however
no overlay/backend so far has used different attributes as siblings,
triggering the difference in handling between bconfig.c and back-ldif.
2012-03-27 01:53:30 -07:00
Howard Chu
4433b1b8d5 ITS#7205 fix check for existing suffix 2012-03-26 03:35:23 -07:00
Howard Chu
93d3a4104a ITS#7200 fix regression in b4d403ea31 2012-03-09 13:10:58 -08:00
Howard Chu
8c452e3272 ITS#7203 approxIndexer should omit zero-length keys 2012-03-09 12:47:49 -08:00
Howard Chu
47e57a9c8f ITS#7191 fix typo, more alignment tweaks 2012-03-08 21:39:31 -08:00
Howard Chu
6143aa0c18 ITS#7201 fix config flags 2012-03-08 19:27:20 -08:00
Howard Chu
b4d403ea31 ITS#7200 enforce check for matching serverID URL 2012-03-08 19:24:09 -08:00
Howard Chu
d0bcaee0f3 ITS#7190 don't crash in slapcat on NULL entry 2012-03-06 22:15:51 -08:00
Howard Chu
6ab4d830cb ITS#7195 add NotAllowedOnNonleaf to deltasync fallback errors 2012-03-02 14:12:41 -08:00
Howard Chu
c4325af7e0 ITS#7180 fix mdb_entry_get when mdb_entry_next was not called 2012-02-24 15:20:17 -08:00
Howard Chu
9b9f4984f0 More for ITS#7170 2012-02-23 12:08:53 -08:00
Howard Chu
3792e9ec59 ITS#7178 fix uninit'd op->ors_deref 2012-02-23 01:16:39 -08:00
Howard Chu
c4d78a17c3 ITS#7170 fix Quick mode index generation 2012-02-22 16:01:59 -08:00
Howard Chu
164e738878 ITS#7176 fix slapindex -q -t 2012-02-20 17:04:24 -08:00
Hallvard Furuseth
465942e74d ITS#7160 Support POSIX make: No $< in target rules 2012-02-18 18:17:40 +01:00
Howard Chu
463c1fa25d ITS#7143 fix attr_dup2 when no values are present (attrsOnly = TRUE) 2012-02-14 17:29:14 -08:00
Howard Chu
eace24ef33 ITS#7162 Revert "ITS#7052 ignore Adds with too old entryCSN"
This reverts commit ba4366eae0.
The patch caused a regression (ITS#7162).
2012-02-12 21:07:25 -08:00
Howard Chu
d4b3c2af6a Partial revert of f30269f5d2
ITS#6024 patch breaks MMR loop detection
2012-02-12 15:54:11 -08:00
Howard Chu
8e7af6331e Add some debug info to aid Delete tracking 2012-02-09 14:16:17 -08:00
Timo Teräs
3dc71dfb1a ITS#7158 Fix a crash in back-sql 2012-02-08 23:04:34 +01:00
Howard Chu
430256fafb ITS#7143 add FIXME comment, note that current patch is not ideal 2012-02-03 11:58:00 -08:00
Howard Chu
ef2f5263de ITS#7143 don't leave empty slots in normalized attr values 2012-02-03 11:43:40 -08:00
Howard Chu
ba4366eae0 ITS#7052 ignore Adds with too old entryCSN 2012-02-03 11:16:10 -08:00
Howard Chu
5584e5b98d ITS#7150 fix check for already abandoned op 2012-02-03 09:35:13 -08: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
Howard Chu
d2958a2a4e ITS#7144 fix crash replicating modDN if oldRDN not present 2012-02-02 02:53:40 -08:00
Howard Chu
2e9f1f93c8 ITS#7142 fix slapadd exit on failure 2012-01-28 15:44:51 -08:00
Howard Chu
d7933e2ea4 ITS#7140 more cleanup on txn abort 2012-01-28 11:52:09 -08:00
Howard Chu
3be354d0d2 ITS#7052 syncrepl deletes should ignore some errors
Treat LDAP_NO_SUCH_OBJECT as success, otherwise the consumer will
abort and start a new refresh for no good reason.
2012-01-27 11:21:04 -08:00
Ondrej Kuznik
19fda82e75 ITS#7123 Update the cached entry when handling compare too. 2012-01-24 03:22:03 -08:00
Hallvard Furuseth
42faa8393e ITS#7132 Fix syncrepl access to freed naming attr 2012-01-24 11:38:10 +01:00
Hallvard Furuseth
624642ba83 Fix sl_malloc valgrind support. 2012-01-24 01:45:51 +01:00
Hallvard Furuseth
db49dfecc9 ITS#7131 Fix connection loop connindex usage.
connection_<first/next>() takes a ber_socket_t *index, not int*.
2012-01-24 00:47:48 +01:00
Hallvard Furuseth
2b538761e9 ITS#7125 Document connection loop API.
Code comments belong in the code, not in commit messages.
2012-01-24 00:47:48 +01:00