Howard Chu
7be5837dc0
Cleanup syncprov_db_close/CONFIG_DELETE code
...
No mutex needed since config ops are single-threaded.
Don't send Unavailable message if we're shutting down.
2011-11-18 01:22:52 -08:00
Howard Chu
278322ee5f
ITS#7025 fix syncprov crash
...
init fop.o_extra, copying from s_op is not guaranteed.
2011-11-18 00:31:20 -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
da210f40e1
ITS#7040 don't complain about other server's CSNs
...
Only worry if consumer has newer state for our SID. Fixes breakage
caused by ITS#6606.
2011-09-30 03:04:10 -07:00
Howard Chu
20a8da0b7c
Revert "More for ITS#6892"
...
This reverts commit 3cb2ca8bbd .
Patch has no benefit
2011-08-16 13:49:27 -07:00
Howard Chu
3cb2ca8bbd
More for ITS#6892
2011-08-15 15:40:46 -07:00
Howard Chu
ebf07016ef
ITS#6872 fix test058 breakage from prev patch
2011-06-27 04:46:43 -07:00
Howard Chu
6da3e3473c
ITS#6716 use sorted CSNs, fix sessionlog
...
track a CSN per SID in the log->sl_mincsn
2011-06-22 00:30:13 -07:00
Howard Chu
329e7937e6
ITS#6892 shortcut for non-replicated ops
2011-06-10 01:44:30 -07:00
cmikk@qwest.net
fa64b07cfc
ITS#6872
...
Perform the internal FIND_CSN search based at the backend's suffix with the
privileges of the backend's root DN.
2011-06-09 01:36:06 -07:00
Howard Chu
3f28eeb797
ITS#6812 cleanup error codes
2011-01-29 03:30:22 +00: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
Howard Chu
4c1464f3cd
ITS#6795 plug sr_ctrls memleak
2011-01-18 02:24:35 +00:00
Howard Chu
e3f344bcbd
ITS#6717 refine mincsn check for MMR
2011-01-13 22:45:59 +00:00
Howard Chu
7da903a11d
ITS#6716 partial revert, initialize sl_mincsn at db_open
2011-01-13 22:23:05 +00:00
Hallvard Furuseth
1ecaeb3b18
noop change: Silence signed vs unsigned warnings
2011-01-12 14:44:03 +00:00
Howard Chu
5ece155e14
More for #6503
2011-01-06 22:46:08 +00:00
Howard Chu
d4523d3142
ITS#6503 - record Adds in sessionlog too, to avoid excessive present phases
2011-01-06 22:37:23 +00:00
Kurt Zeilenga
966cef8c9a
Happy New Year
2011-01-05 00:42:37 +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
13f52646b2
ITS#6758 Avoid SlapReply reuse, simple cases.
...
Caller provides and reuses a SlapReply it does not read after
initialization. So reinitialize or move the declaration inwards.
In case of refint, move the rs parameter into refint_repair().
2010-12-31 10:46:22 +00:00
Hallvard Furuseth
f7a77545ad
noop commit for ITS#6758: simplify future commits
2010-12-30 23:48:41 +00:00
Hallvard Furuseth
98966abeef
noop commit for ITS#6758: Remove no-effect code.
...
Unused variable resets, unused SlapReply parameters to some functions.
2010-12-30 23:43:12 +00:00
Hallvard Furuseth
cd6e9156e7
Remove lint (unused vars/labels/funcs/default:s)
2010-12-30 23:34:55 +00:00
Hallvard Furuseth
720aa4b77e
Plug mutex/rwlock leaks (destroy them)
2010-12-20 10:57:06 +00:00
Rein Tollevik
b4aa8dc68c
ITS#6716: Keep sessionlog sorted by csn, compare mincsn with head.
2010-12-12 18:12:05 +00:00
Rein Tollevik
d3cddce244
ITS#6718: Send NEW_COOKIE messages to all consumers.
2010-11-21 19:00:38 +00:00
Rein Tollevik
990d8f562f
ITS#6710: Force clients to refresh if context is dirty.
2010-11-21 17:56:09 +00:00
Rein Tollevik
877fc0ab37
ITS#6709: Wait for active mods to finish before initiating new consumers.
2010-11-21 15:31:38 +00:00
Rein Tollevik
ba86259aa0
ITS#6708: Mutex protect fixing the filter.
2010-11-15 15:42:06 +00:00
Howard Chu
7e7f24f13f
ITS#6606 send error if consumer is newer than provider
2010-07-28 02:21:27 +00:00
Ralf Haferkamp
c4f0c2cc2b
unregister controls when removing syncprov, ppolicy, valsort, chain or
...
sssvlv overlay
2010-07-01 11:51:43 +00:00
Ralf Haferkamp
7b2dc4c059
Send error to active psearches upon overlay removal
2010-06-23 16:34:25 +00:00
Ralf Haferkamp
a06696a1ef
During the refresh phase the sync filter needs to be adjusted (skipping
...
the "(entrycsn>=cookie)" part that was inserted) when checking whether a
change needs to be replicated, otherwise we lose DELETES that happen during
the refresh phase (ITS#6555).
2010-05-20 17:08:28 +00:00
Ralf Haferkamp
5743591419
Reset BackendInfo to original value after checkpoint. Plugs a memory leak
...
when deleting the syncprov overlay from a database (when compiled with
-DSLAP_CONFIG_DELETE)
2010-04-29 15:47:27 +00:00
Kurt Zeilenga
3dadeb3efe
happy belated New Year
2010-04-13 22:17:29 +00:00
Ralf Haferkamp
9e3517595d
Plugged memory leak. Syncentry wasn't free'd when sending
...
LDAP_SYNC_NEW_COOKIE intermediate results. (ITS#6459)
2010-01-21 13:33:21 +00:00
Howard Chu
0c195fc013
ITS#6438 check for redundant syncops_free() ?
2010-01-05 03:50:10 +00:00
Howard Chu
fae4df1ed6
more for #6397
2009-11-23 22:17:25 +00:00
Howard Chu
e72e0507f8
ITS#6397 cleanup psearch if cookie is stale
2009-11-23 22:13:42 +00:00
Howard Chu
faddd86f54
Revert prev commit, simpler fix...
2009-11-22 17:43:48 +00:00
Howard Chu
993fbf4514
Short-circuit backend_operational; sent entry's e_private doesn't belong
...
to the backend any more
2009-11-22 04:43:34 +00:00
Howard Chu
c365ac359e
ITS#6368 use dup'd entries in response queue
2009-11-22 04:42:00 +00:00
Howard Chu
650ebba22b
Fix prev commit
2009-11-21 11:54:59 +00:00
Howard Chu
4bdc6fcbc9
in op_response, rearrange contextCSN update checks
2009-11-21 11:43:01 +00:00
Howard Chu
af0d762c1c
Mostly revert prev commit, broke test054
2009-11-21 03:38:13 +00:00
Howard Chu
ae5af832db
Always log outgoing cookie, just use op->o_csn instead of commit_csn since
...
all responses are now serialized.
2009-11-21 02:37:53 +00:00
Howard Chu
198cbd6ea8
ITS#6368 partially revert 1.273, always check for skips, not just on
...
first matchops call
2009-11-19 11:17:53 +00:00
Howard Chu
ff98f4abc5
Use fake_init2 in db_open/db_close since they can execute from a
...
back-config operation (and could wipe out the state otherwise)
2009-11-15 10:38:13 +00:00
Howard Chu
67edd75e48
Cleanup for #6373
2009-11-14 21:53:06 +00:00
Howard Chu
dd2f158b52
Fix prev commit
2009-11-14 09:35:23 +00:00
Howard Chu
fe911c5960
ITS#6376 plug potential leak
2009-11-14 09:34:29 +00:00
Howard Chu
3f9e8eeeec
ITS#6373 more for subentry creation
2009-11-11 04:03:27 +00:00
Howard Chu
9ad558b78c
ITS#6373 create subentry if missing
2009-11-11 03:36:46 +00:00
Howard Chu
46a97b9204
ITS#6373 sync_use_subentry support
2009-11-11 03:19:01 +00:00
Pierangelo Masarati
17a185b32a
unparse checkpoint time in minutes (ITS#6370)
2009-11-10 19:02:33 +00:00
Howard Chu
a3f38ed932
ITS#6346 serialize all responses
2009-10-29 23:46:10 +00:00
Rein Tollevik
739f8d0753
ITS#6335 Don't reuse a modtarget someone is about to remove
2009-10-16 17:27:18 +00:00
Pierangelo Masarati
f3cdcadf89
wrap gmtime for reentrancy (ITS#6262)
2009-08-18 23:48:15 +00:00
Rein Tollevik
2a4bce0633
More for ITS#6045: clear o_callback as well.
2009-04-04 20:25:38 +00:00
Rein Tollevik
4901d77f94
Fixed previous again, using o_bd->bd_self is safer.
2009-04-04 20:09:43 +00:00
Rein Tollevik
aef88182ab
Fixed previous edit: Use op->o_bd, not a copy of ss->s_op->o_bd
2009-04-04 17:58:58 +00:00
Rein Tollevik
ab0d7543df
ITS#6045: Use copy of db when testing filter in matchops.
2009-04-03 17:55:47 +00:00
Rein Tollevik
f30269f5d2
ITS#6024 Don't send cookies without csn.
2009-03-15 23:05:08 +00:00
Howard Chu
14d4ca86e1
Fix prev 2 commits: make sure op is Modify before testing modlist,
...
don't checkpoint when adding the context entry to a DB
2009-03-14 09:03:30 +00:00
Howard Chu
1e651713e2
ITS#5988 allow entries without CSN to be replicated
2009-03-14 07:22:19 +00:00
Howard Chu
9764499136
ITS#5973 re-enable patch
2009-03-14 07:21:06 +00:00
Howard Chu
fb35e344ed
Fix prev commit
2009-03-13 23:25:00 +00:00
Howard Chu
2f14098a9b
ITS#5988 don't respond if consumer's state is newer than ours
2009-03-13 23:09:14 +00:00
Howard Chu
43b23ce31c
ITS#5999 better modtarget tracking
2009-03-13 22:59:20 +00:00
Howard Chu
6044e46ec7
Avoid shutdown problems
2009-03-13 08:33:34 +00:00
Howard Chu
0af440befe
Cleanup prev commit
2009-03-13 07:50:45 +00:00
Howard Chu
eb3e92481b
More for #6020
2009-03-13 06:44:49 +00:00
Howard Chu
bbe1285696
For #6020 log remote sid in syncprov_sendresp
2009-03-13 03:44:51 +00:00
Howard Chu
4775157666
More for prev commit
2009-03-13 01:07:45 +00:00
Howard Chu
553d6a9963
ITS#5973 hide this for now, it's broken
2009-03-13 00:28:09 +00:00
Howard Chu
d03e5ad14e
More for prev commit
2009-03-13 00:26:24 +00:00
Howard Chu
011d1ca8bc
Fix prev commit
2009-03-13 00:15:28 +00:00
Howard Chu
83870c03d2
ITS#6020 better tracking of where changes came from
2009-03-13 00:14:19 +00:00
Howard Chu
7c183775d0
Check rc in prev commit
2009-03-05 17:53:01 +00:00
Howard Chu
75943bcd3f
ITS#5985 Only play one queued response at a time per psearch thread
2009-03-05 11:21:07 +00:00
Rein Tollevik
47011649f7
ITS#5973 use the modify op to pass csn updates from syncrepl to syncprov
2009-02-24 20:11:22 +00:00
Rein Tollevik
0157ae4744
ITS#5972 Added newCookie sync info messages.
2009-02-24 20:01:08 +00:00
Rein Tollevik
5909aa56ff
ITS#5969 update consumers csn when providers change.
2009-02-23 00:37:12 +00:00
Howard Chu
e841247c90
Fix corrupted CSN issue
2009-02-16 00:12:38 +00:00
Howard Chu
99e47ef47a
(Temporarily) define CHECK_CSN for all LDAP_DEVEL builds
2009-02-15 23:21:28 +00:00
Howard Chu
55cc203b52
More CHECK_CSN tests
2009-02-15 23:17:45 +00:00
Howard Chu
450f352ec1
Fix compare op
2009-02-15 23:14:25 +00:00
Howard Chu
686ceac31f
Add some asserts on CSN validity
2009-02-11 22:00:00 +00:00
Howard Chu
461ffd51f6
Reverse lock order when detaching op
2009-01-28 02:03:07 +00:00
Howard Chu
532347bb3c
ITS#5881 consumer must use ManageDSAiT control to retrieve referrals
...
as entries. provider must preserve incoming ManageDSAiT status.
2009-01-24 07:04:42 +00:00
Kurt Zeilenga
4af9eb9715
Update copyright notices
2009-01-22 00:40:04 +00:00
Howard Chu
c71e7b399a
ITS#5827, release syncop after mod op completes
2008-11-23 20:43:39 +00:00
Howard Chu
5dc58028c1
ITS#5710 fix stupid updateCookie hack, use explicit o_dont_replicate flag
2008-11-06 21:10:25 +00:00
Howard Chu
f463be3b95
Add DBFLAG_CLEAN for a DB that was cleanly shut down; don't bother
...
scanning to verify contextCSN for clean shutdowns (ITS#5640)
2008-11-02 23:06:10 +00:00
Howard Chu
d75a567708
Really fix ITS#5709 - more explicit check for un-replicatable ops, and
...
don't send ctxcsn update if current maxcsn doesn't match current csn
2008-11-02 15:26:25 +00:00
Rein Tollevik
7ec3743aa5
ITS#5776 prevent duplicate removal of qtask from runqueue.
2008-10-28 20:33:46 +00:00
Hallvard Furuseth
e3bc5b64c6
Warning cleanup: Remove no-op bv_len < 0 and bv_len >= 0 tests
2008-10-17 17:40:48 +00:00
Pierangelo Masarati
dc414747a7
silence warnings
2008-09-16 14:44:24 +00:00
Rein Tollevik
99d004189a
ITS#5596 contextCSN updates are internal operations.
2008-07-04 23:44:39 +00:00