Commit Graph

190 Commits

Author SHA1 Message Date
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
Howard Chu
5757065736 ITS#4622
syncrepl: don't save contextCSN on incoming context entry
  syncprov: delete contextCSN on checkpoint if ctxcsn is empty
2006-07-27 10:44:22 +00:00
Howard Chu
00addd5d68 ITS#4613 - fail to start if lastmod is off 2006-07-24 00:32:27 +00:00
Howard Chu
e3bea86205 ITS#4562 - don't assume syncprov_op_response only runs in overlay context;
under a glue setup it may be get a real DB, don't corrupt the DB struct.
2006-05-26 12:08:15 +00:00
Howard Chu
837e9466b8 ITS#4534 propagate CSN for delete syncID sets 2006-05-11 10:46:44 +00:00
Howard Chu
608c85a9f0 ITS#4423, fix sessionlog lower bound in playlog 2006-05-02 05:08:59 +00:00
Howard Chu
590bc6a7fa More logging for ITS#4423 2006-04-28 03:06:47 +00:00
Hallvard Furuseth
19a0d82937 Init & destroy so.s_mutex around syncprov_findbase() call in syncprov_op_search 2006-04-02 23:49:57 +00:00
Howard Chu
8cbd5ecc13 Cleanup 2006-03-31 10:45:23 +00:00
Howard Chu
7b5528d68b ITS#4417 backglue must pass intermediate responses transparently.
syncprov must prevent send_ldap_result from being called for an
in-progress persistent search.
2006-02-27 09:20:55 +00:00
Howard Chu
fdc89d2604 ITS#4365 reset frs.sr_nentries before searching in syncprov_playlog 2006-01-23 22:23:00 +00:00
Howard Chu
51c5916149 ITS#4364 add filter_dup, don't use str2filter to dup filters. 2006-01-23 20:53:52 +00:00
Pierangelo Masarati
b21c869ac3 silence (harmless) warnings 2006-01-07 11:13:40 +00:00
Howard Chu
7b9fc0e377 wake listener when scheduling qtask so it can run immediately 2006-01-06 20:38:14 +00:00