Howard Chu
8fc7e06d22
Revert "ITS#7616 defer searches while consumer refreshing"
...
This reverts commit cf4aa8f9d9
.
There appears to be no safe way for this to work with MMR.
2014-06-12 13:23:29 -07:00
Howard Chu
932a11ac76
ITS#7849 make sure to send cookie after fallback
2014-05-23 06:56:56 -07:00
Howard Chu
cf4aa8f9d9
ITS#7616 defer searches while consumer refreshing
2014-05-23 06:56:16 -07:00
Kurt Zeilenga
5c878c1bf2
Happy new year (belated)
2014-01-25 05:21:25 -08:00
Howard Chu
0645878d5d
ITS#7735 plug memleak
...
Introduced in commit 48cdd54d9a
2013-11-01 11:07:51 -07:00
Howard Chu
37c8b35ebd
Cleanup, fix syncrepl config errmsg
2013-05-17 07:51:23 -07:00
Howard Chu
051dba822c
Avoid unnecessary syncCookie malloc/free
2013-03-14 06:55:44 -07:00
Howard Chu
575ad77adb
ITS#7531 check updateCookie status for INTERMEDIATEs
...
Was already being checked for other message types.
2013-03-14 06:39:46 -07:00
Kurt Zeilenga
0fd1bf30b8
Happy New Year
2013-01-02 10:22:57 -08:00
Howard Chu
951418f0bf
ITS#7427 fix for spurious old entries
2012-11-01 08:36:28 -07:00
Howard Chu
3f71f75601
ITS#7354 fix delta-sync mmr crash
2012-08-16 18:08:56 -07:00
Howard Chu
62cdc32f4e
ITS#7245 fix slap_parse_sync_cookie invocation
2012-04-16 07:36:43 -07:00
Howard Chu
6ab4d830cb
ITS#7195 add NotAllowedOnNonleaf to deltasync fallback errors
2012-03-02 14:12:41 -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
8e7af6331e
Add some debug info to aid Delete tracking
2012-02-09 14:16:17 -08:00
Howard Chu
ba4366eae0
ITS#7052 ignore Adds with too old entryCSN
2012-02-03 11:16:10 -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
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
Hallvard Furuseth
42faa8393e
ITS#7132 Fix syncrepl access to freed naming attr
2012-01-24 11:38:10 +01:00
Howard Chu
214ad8c987
ITS#7127 fix syncrepl_config reference to freed memory
2012-01-19 15:55:54 -08:00
Kurt Zeilenga
2bbf9804b9
Happy New Year!
2012-01-01 07:10:53 -08:00
Howard Chu
3ca52e4f94
ITS#7037 restart consumer on Persist errors
...
Consumer should never get NO_SUCH_OBJECT for an Add to the underlying DB
during Persist phase.
2011-09-30 02:27:04 -07:00
Howard Chu
638566f155
ITS#7037 fix syncrepl_add_glue for empty suffix
2011-09-30 02:10:37 -07:00
Howard Chu
b72d9b8368
ITS#7052 syncrepl deletes need a non-empty CSN
...
Must not let the underlying DB generate its own.
2011-09-30 00:09:01 -07:00
Hallvard Furuseth
ef7f5f5e32
Cleanup ISO C compatibility for recent commits
2011-09-19 10:31:12 +02:00
Howard Chu
c617f3c3b9
ITS#7029,#7031 More for prev commit
2011-08-26 16:56:43 -07:00
Howard Chu
ab69775dd0
ITS#7029 fix uninit'd nvalue
2011-08-24 16:09:37 -07:00
Howard Chu
a31a8ed20e
ITS#6999 fix syncrepl timeout in refreshAndPersist
2011-07-29 13:05:45 -07:00
Howard Chu
ff7acea2d2
ITS#7000 fix bad patch in ITS#6472
2011-07-28 13:52:47 -07:00
Howard Chu
b0fcec8d65
ITS#6716 Use sorted CSNs in syncrepl too
2011-06-22 00:32:00 -07:00
Howard Chu
05ca8c3710
More fixes, add test script
2011-06-20 11:05:08 -07:00
Howard Chu
48cdd54d9a
Fix missing si_syncCookie numcsns
2011-06-20 06:51:33 -07:00
Howard Chu
480f0c16ff
More tweaks for delta-mmr
2011-06-20 04:27:11 -07:00
Howard Chu
67bbad6e70
delta-mmr conflict resolution
2011-06-19 20:14:03 -07:00
Howard Chu
237a686107
More for conflict detection
2011-06-19 20:13:59 -07:00
Howard Chu
95d7adcd6d
Setup delta-mmr using an overlay
2011-06-19 20:13:51 -07:00
Howard Chu
9e00b6cc6c
Add strictrefresh syncrepl option
...
Only affects delta-syncrepl - stop listening to clients while
refresh is running.
2011-04-15 11:13:38 -07:00
Howard Chu
d6eb465bca
Log when delta-sync has to fallback
2011-04-15 10:41:31 -07:00
Howard Chu
b062dd67de
Log entry DN on syncrepl errors
2011-04-14 22:07:12 -07:00
Howard Chu
20e7176183
More for ITS#6807, make sure to check_syncprov() after initial startup
2011-01-28 22:01:18 +00:00
Howard Chu
2d37632286
ITS#6807 always use complete cookie on refresh requests
2011-01-27 20:50:08 +00:00
Kurt Zeilenga
966cef8c9a
Happy New Year
2011-01-05 00:42:37 +00:00
Hallvard Furuseth
eae5e37ebd
Set sr_type=REP_SEARCH before be_operational
2011-01-04 15:12:45 +00:00
Hallvard Furuseth
15aa7c472a
noop commit: cleanup 0 -> REP_RESULT in SlapReply
2010-12-31 14:08:34 +00:00
Hallvard Furuseth
6d7c1880a8
ITS#6758 Avoid SlapReply reuse.
...
Caller provides a SlapReply and reads the result after the operation,
then reuses it. Reinitialize before reuse, or move declaration inwards.
2010-12-31 13:08:11 +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
cd6e9156e7
Remove lint (unused vars/labels/funcs/default:s)
2010-12-30 23:34:55 +00:00
Hallvard Furuseth
78a0be6a42
Plug memory leaks
2010-12-20 10:51:14 +00:00
Hallvard Furuseth
87a9ee9e83
For ITS#6739: Fix last commit (private debuging)
2010-12-06 09:27:30 +00:00
Hallvard Furuseth
5fc18b9d66
For ITS#6739: Move variables into do_syncrep2 loop
2010-12-06 09:23:44 +00:00
Pierangelo Masarati
b68703031b
initialize rc in syncrepl_add_glue_ancestors (ITS#6719)
2010-11-22 12:09:45 +00:00
Rein Tollevik
e1dfe6e911
ITS#6707: Free the presentlist (if any) before connecting.
2010-11-15 14:15:46 +00:00
Howard Chu
e43f0a2cf0
Fix rewriterule, free rewrite info in syncinfo_free
2010-06-21 18:01:29 +00:00
Howard Chu
995c4c5bb3
Fix prev commit, return NULL if rewrite returns original DN
2010-06-21 17:26:50 +00:00
Howard Chu
6ee6739b48
Add suffixmassage processing
2010-06-19 03:15:41 +00:00
Howard Chu
bc82f314c3
Add config support for suffixmassage. Note - no actual massage code
...
present in this commit.
2010-06-19 01:29:39 +00:00
Howard Chu
6273df07da
ITS#6533 put rid first, in front of url
2010-04-26 12:07:08 +00:00
Pierangelo Masarati
68257f6c5c
log rid when syncrepl stanza successfully added (ITS#6533)
2010-04-25 17:49:37 +00:00
Pierangelo Masarati
993d377b68
remove redundant logs (underlying backends already log enough)
2010-04-18 18:42:44 +00:00
Pierangelo Masarati
c939422ae5
alreadyExists is a legitimate result code (further improve ITS#6472 commit; also fix ITS#6528)
2010-04-18 17:11:29 +00:00
Pierangelo Masarati
4480b22a91
don't use dangling stack pointers (more on ITS#6472 fix)
2010-04-18 06:53:22 +00:00
Pierangelo Masarati
8025becf91
fix syncrepl when attr has no matching rule (ITS#6458)
2010-04-18 05:37:36 +00:00
Pierangelo Masarati
a9990e8914
fix out of order add/rename, when rename to newly added new superior occurs while consumer is offline (ITS#6472)
2010-04-17 21:59:35 +00:00
Kurt Zeilenga
3dadeb3efe
happy belated New Year
2010-04-13 22:17:29 +00:00
Howard Chu
47f1c8c887
ITS#6473 fail delta-sync when unknown attrs are received
2010-03-02 21:45:25 +00:00
Howard Chu
12affea4ac
ITS#6425 fix uninit'd vars
2009-12-09 00:04:58 +00:00
Howard Chu
25a4e7806a
ITS#6419 also init for ldaps:// URIs
2009-12-08 11:50:39 +00:00
Rein Tollevik
6c406f1737
ITS#6413 Ensure task don't get queued while being freed after config change.
2009-12-03 21:56:48 +00:00
Howard Chu
e3c01a32f8
Revert pending CSN if the update fails
2009-11-22 19:30:50 +00:00
Pierangelo Masarati
1970251bb7
check result of str2filter; syncrepl: can be broken; retcode: can't; pcache: shouldn't (ITS#6391)
2009-11-22 11:57:17 +00:00
Howard Chu
77680f78a8
ITS#6394 partially revert ITS#5108. Use RID_MAX, as originally designed.
2009-11-22 00:08:52 +00:00
Pierangelo Masarati
39f0d79485
use macros for fake connid
2009-11-21 21:02:49 +00:00
Howard Chu
75d1e515ee
in updateCookie, no-op if nothing changed
2009-11-21 11:38:42 +00:00
Howard Chu
f664cbfb4c
Use unique IDs for fake syncrepl connections
2009-11-21 06:54:58 +00:00
Howard Chu
572e16883c
Braindead serialization for #6368/test050
2009-11-21 04:14:40 +00:00
Howard Chu
3dd04151f5
Always log rid with incoming cookie
2009-11-21 02:34:10 +00:00
Howard Chu
60d83e06b8
Fix typo in 1.487
2009-11-20 23:20:37 +00:00
Howard Chu
d283f02c45
Fix prev commit
2009-11-20 22:52:47 +00:00
Howard Chu
2aadfa5d86
Reject old ops based on pending ops, not just committed ops
2009-11-20 22:47:48 +00:00
Howard Chu
ffb06848ff
ITS#6368 add another call to check_syncprov to make sure cookie is fresh
2009-11-18 22:06:02 +00:00
Pierangelo Masarati
272abc5561
don't test a NULL BackendDB * (ITS#6385)
2009-11-18 09:51:49 +00:00
Pierangelo Masarati
3768fbbd30
warn if retry is not forever
2009-11-16 09:58:12 +00:00
Howard Chu
c419a3e4f7
ITS#6367 use correct SID in our request cookie
2009-11-15 19:15:12 +00:00
Howard Chu
cd99d851a2
Fix uninit'd var
2009-11-15 08:59:56 +00:00
Howard Chu
b800bd4729
ITS#6377, fix rev 1.478
2009-11-14 21:25:11 +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
1e85952843
ITS#6373 add sync_use_subentry keyword
2009-11-11 03:06:32 +00:00
Pierangelo Masarati
72c1b2f821
add pedantic checks
2009-08-21 17:08:48 +00:00
Howard Chu
f0a0e9fa32
Revert prev commit, use ldap_pvt_ funcs
2009-08-18 08:53:41 +00:00
Howard Chu
7442e58dc2
For ITS#6152 add slapd_str2scope(), slapd_scope2bv()
2009-08-18 02:47:28 +00:00
Howard Chu
0132ea425d
ITS#6152 add syncrepl_diff_entry()
2009-08-17 11:58:47 +00:00
Howard Chu
f918243a2f
ITS#6256 from Jonathan Clarke
2009-08-15 14:05:47 +00:00
Howard Chu
bf69b8e065
ITS#5942 consolidate server URL match to config_check_my_url().
...
In syncrepl, assume consumer pointing to same server but different
searchbase is OK otherwise ignore config.
2009-07-29 09:04:39 +00:00
Howard Chu
23783a9164
Add ldap_pvt_thread_pool_retract() to cancel pending threads
2009-06-11 04:46:04 +00:00
Howard Chu
273bd403f4
Avoid multiple attempts to free the same syncinfo
2009-05-18 07:58:27 +00:00
Pierangelo Masarati
79024465dc
check dn normalization result
2009-05-07 15:27:01 +00:00
Hallvard Furuseth
2365945268
ITS#6064: "//" comment from rev 1.445 -> "/**/" comment
2009-04-16 17:48:50 +00:00
Howard Chu
6fc4af8a18
ITS#6054 quit using global malloc
2009-04-11 03:42:15 +00:00
Howard Chu
ae3fb6acfa
Fix 1.461, forgot to release mutex when persistent conn exists
2009-03-22 02:53:49 +00:00