Howard Chu
9dc35b8997
Don't queue zero-length CSNs
2007-10-02 23:51:40 +00:00
Pierangelo Masarati
14bcd332ce
log cookie (until we find what's going on...)
2007-10-02 18:09:15 +00:00
Pierangelo Masarati
2de9d97ad2
first round of s/sprintf/snprintf/; the rationale is: truncate error messages rather than buffer overflow; otherwise, assert that no buffer overflow occurred. In some cases, error handling could be added. Please note: no real error in the code was found so far, apart from that in syncprov.c and from some config-time error logging; however, errors could slip thru again if things don't change consistently
2007-09-29 17:55:33 +00:00
Howard Chu
d2179d885f
Use attr_valfind instead of value_find_ex to optimize lookups
2007-09-24 05:02:31 +00:00
Howard Chu
e8c2414831
Preliminary sorted value support
2007-09-24 01:31:23 +00:00
Howard Chu
a3547e2758
More for a_numvals
2007-09-23 04:40:16 +00:00
Howard Chu
c4dbe1a274
Attribute/Modification value counters
2007-09-21 08:43:56 +00:00
Pierangelo Masarati
d92e8ad1f7
add helper for internal searchs for objectClass=*
2007-09-15 17:38:53 +00:00
Pierangelo Masarati
7ceaad7eb2
plug yet another leak
2007-08-29 00:27:47 +00:00
Ralf Haferkamp
3a9310431e
Reworked recent backend API changes, now using a separate struct,
...
(ConfigReply) for the error messages.
2007-08-03 12:02:07 +00:00
Ralf Haferkamp
5ae46c195e
Added a new parameter (ConfigArgs*) to the _db_init, _db_open, _db_close and
...
_db_destroy functions.
2007-07-25 17:21:05 +00:00
Howard Chu
b7d38c15ff
ITS#5048 fully initialize fc_limits
2007-07-20 15:16:36 +00:00
Hallvard Furuseth
9bd4a298ef
ITS#5049: Initialize conn in syncprov_db_close() before connection_fake_init().
2007-07-18 21:02:14 +00:00
Howard Chu
9227293e8d
ITS#4977 check for cookie parse failure
2007-06-08 09:05:35 +00:00
Pierangelo Masarati
74ca4680db
more ITS#4973 initialization
2007-05-19 14:12:24 +00:00
Hallvard Furuseth
93fbb87545
Give OperationBuffer normal struct members instead of using
...
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Howard Chu
093f52e44d
ITS#4961 disable schema checking on contextCSN update
2007-05-14 21:25:48 +00:00
Kurt Zeilenga
f810e6ed41
Distinguish absent control value from empty control value.
2007-04-20 22:32:58 +00:00
Pierangelo Masarati
639d678592
cleanup struct declarations
2007-03-20 01:07:10 +00:00
Howard Chu
06212e9de9
Plug leaks
2007-02-16 02:22:24 +00:00
Howard Chu
e28627f1e2
Added "slapd" rewrite map handler, connection_fake_init2 to use existing
...
tmpmemctx without reinitializing
2007-02-14 08:51:47 +00:00
Howard Chu
f649d8a29c
Cleanup si_ctxcsn and si_sids in db_destroy
2007-02-13 13:40:56 +00:00
Howard Chu
3eb81978f3
Coverity leak
2007-02-13 11:10:36 +00:00
Pierangelo Masarati
a904cc015c
fix crash related to ITS#4839; other issues seem to presist
2007-02-10 10:55:05 +00:00
Howard Chu
9d86bf253f
Improve prev commit
2007-02-07 02:49:40 +00:00
Howard Chu
3fbcfa797e
Re-fix ITS#4720, use rwlock
2007-02-07 01:08:54 +00:00
Howard Chu
3f20aa245f
Partially revert prev commit, delete unused parameter, fix psearch response
2007-02-06 05:58:01 +00:00
Howard Chu
9467269cef
ITS#4623, entry_get has to pass thru glue layer too
2007-02-06 04:19:56 +00:00
Howard Chu
448f584fe5
Fix typo
2007-02-06 01:18:17 +00:00
Howard Chu
21e4eb3dcc
Fix prev commit - cannot shortcut initial sync
2007-02-05 23:54:07 +00:00
Howard Chu
250cbd286a
Optimization: send sid in cookie to avoid getting our changes sent
...
back to us.
2007-02-05 23:10:22 +00:00
Howard Chu
55b29bedf8
Fix prev commit, don't generate a new ctxcsn if we're a consumer with
...
an empty DB
2007-02-05 09:19:46 +00:00
Howard Chu
fffaea79eb
Preliminary multi-context support for syncrepl. Passes all single-master
...
tests, needs multi-master testing.
2007-02-05 04:50:07 +00:00
Howard Chu
8d03970944
Fix debug args
2007-01-25 11:56:49 +00:00
Howard Chu
35e0956c26
Log the error code too
2007-01-25 04:10:57 +00:00
Howard Chu
7eeeaaf06d
ITS#4810 log a message if be_entry_get doesn't return the entry we want
2007-01-25 04:10:18 +00:00
Howard Chu
1ce42136fb
ITS#4813 don't limit the presence list to the current snapshot. add
...
some debug msgs for the sessionlog list.
2007-01-25 02:06:33 +00:00
Howard Chu
67b08ebe77
Don't use ldap_pvt_thread_pool_context_reset(), it interferes with
...
dynamic adds.
2007-01-21 13:02:05 +00:00
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Pierangelo Masarati
19dabd2fa8
complain if instantiated outside of a database definition
2006-12-02 10:42:42 +00:00
Howard Chu
48fce3d119
ITS#4742 cleanup config error reporting
2006-11-12 02:15:49 +00:00
Howard Chu
b009b1820e
ITS#4720 release csn mutex before checkpointing.
2006-10-26 15:34:40 +00:00
Howard Chu
393e6e5ec0
Tweak prev commit, avoid referencing syncop when resetting qtask
2006-09-21 10:12:42 +00:00
Howard Chu
c1fad2d603
ITS#4658 propagate errors from syncprov_sendresp; drop qtask on errors.
...
Note: need a way to close the connection too.
2006-09-21 09:42:40 +00:00
Howard Chu
78172aa0cf
Entry/Attribute struct caching, to minimize malloc fragmentation
...
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Howard Chu
ccd1273cfe
TS#4622 deletes in psearch didn't always propagate
2006-08-15 21:41:14 +00:00
Howard Chu
44d3972dd7
ITS#4622 if any present list was sent, must send refreshPresent
2006-08-15 12:37:59 +00:00
Howard Chu
55aa8af4be
ITS#4622 make sure queued psearch responses get played after refresh
...
phase completes. Ignore empty sessionlog
2006-08-15 09:28:25 +00:00
Howard Chu
789c76b4ce
Delete curcsn arg to slap_get_commit_csn, redundant with op->o_csn
2006-08-15 09:25:42 +00:00
Howard Chu
b915969d29
ITS#4589 slap_get_commit_csn occasionally returns a curcsn that points
...
to already-freed memory. That bug still needs to be tracked down. This
patch deletes curcsn and just uses op->o_csn, which did not exist when
this code was originally written.
2006-07-28 02:40:38 +00:00