Quanah Gibson-Mount
86105092bd
CHECK_CSN is a debug only flag for testing. It should always remain
...
behind LDAP_DEVEL
2017-09-26 11:30:50 -07:00
Quanah Gibson-Mount
7246da8a66
Whitespace cleanup
2017-09-26 10:33:01 -07:00
Ondřej Kuzník
9e156bf914
ITS#8444 Do not clear the pending operation when checkpointing
...
When a checkpoint happens, if we remove the CSN from the pending list,
accesslog won't pass it onto the accesslog DB. But in a delta-mmr
scenario, an accesslog entry without a CSN faces a race where it might
be applied twice - that usually fails and causes a full refresh, other
times it can cause a silent desync - both are undesirable.
2017-08-25 16:52:13 +01:00
Howard Chu
a9f462d615
ITS#8690 one more time
2017-08-04 20:58:07 +01:00
Howard Chu
c9e56b80f3
ITS#8690 fix again
2017-08-04 13:40:34 +01:00
Howard Chu
bcc6601091
Revert "ITS#8690 refix"
...
This reverts commit a5f3a2885c .
2017-08-04 13:34:03 +01:00
Howard Chu
a5f3a2885c
ITS#8690 refix
...
Don't double-queue delete ops
2017-08-02 00:52:13 +01:00
Howard Chu
9827569ff0
ITS#8690 fix prev commit
2017-08-01 21:57:02 +01:00
Howard Chu
1fbc0dff88
ITS#8690 plug memleak on Delete ops
2017-07-21 19:04:08 +01:00
Quanah Gibson-Mount
1df85d3427
Happy New Year!
2017-01-03 12:36:47 -08:00
Hallvard Furuseth
23c5d6bbdd
ITS#8435 Fix uninited slap_callback.sc_writewait
2016-06-12 08:30:58 +02:00
Howard Chu
d6f3440d94
ITS#8365 partially revert ITS#8281
...
Must setup psearch before snapshotting ctxcsn
2016-02-02 19:41:13 +00:00
Quanah Gibson-Mount
6c4d6c880b
Happy New Year!
2016-01-29 13:32:05 -06:00
Howard Chu
a9df031d0d
ITS#8354 move abandon check
2016-01-23 16:06:32 +00:00
Howard Chu
6d2eb36ccb
ITS#8354 tweak prev commit
...
Delay mutex init to avoid leaking the mutex
2016-01-22 20:46:23 +00:00
Howard Chu
4773850d42
ITS#8354 fix syncprov abandon
...
Check for abandon just before recording psearch
2016-01-22 20:41:48 +00:00
Howard Chu
cd8ff37629
ITS#8281 fix delta-mmr with interrupted refresh
...
Prevent spurious contextCSN generation
and ignore consumers when we have no contextCSN yet.
But make sure to propagate valid contextCSN updates to
accesslog/syncprov for delta consumers.
2015-10-24 06:06:49 +01:00
Howard Chu
eb25ece469
Revert unintended commit
2015-07-08 14:25:52 +01:00
Howard Chu
b7a291a488
Experimental syslog() replacement
...
2-3x faster than libc. Add it to the Makefile yourself if you want to test it.
2015-07-08 14:22:29 +01:00
Howard Chu
ff7c0e5779
ITS#8081 - more for #8063
...
Prev patch broke underlying assumption that mods queue and execute
in order. Now must search list for matching mod to dequeue.
2015-03-21 21:32:48 +00:00
Howard Chu
8eb9aa7dc5
ITS#8063 more for prev commit
2015-02-25 06:11:44 +00:00
Howard Chu
8ad64c8f9a
ITS#8063 don't block our own thread
2015-02-25 05:44:07 +00:00
Quanah Gibson-Mount
1705fa7e55
Happy New Year
2015-02-11 15:36:57 -06:00
Howard Chu
cb3952db4b
ITS#8039 more cleanup
2015-02-03 10:23:39 +00:00
Howard Chu
b1d1c74247
Cleanup prev commit
2015-02-02 08:45:57 +00:00
Howard Chu
bb9287ba1a
More for ITS#8043
2015-02-02 08:42:28 +00:00
Howard Chu
bc1e08e296
ITS#8043 don't leave dangling syncops
2015-01-31 13:04:53 +00:00
Howard Chu
edf359795c
ITS#8039 cleanup
2015-01-31 12:52:56 +00:00
Howard Chu
c8d40af0d2
ITS#8039 fix prev commit
...
Don't overload ri_csn with cookie, use a separate berval
2015-01-31 00:12:29 +00:00
Howard Chu
a2d4ed146d
ITS#8039 plug syncprov memleak
...
Rewrote the psearch result handling to keep track of which
queues are using which results.
2015-01-30 08:55:47 +00:00
Leo Yuriev
7c2951819f
ITS#5452,#8012: fix syncprov syncops freeing
...
Detaching a syncops record from op-list conditionally,
only when it was freed by syncprov_free_syncop.
The syncprov_free_syncop() and syncprov_drop_psearch() now
returns a flag, which is nonzero if the given syncops was freed.
2015-01-04 07:27:29 +00:00
Howard Chu
0b2438fbec
ITS#8013 fix syncprov_matchops test_filter usage
2015-01-04 07:20:41 +00:00
Howard Chu
92c7a89130
ITS#7928 fix syncprov abandon cleanup
2014-08-29 02:19:35 +01:00
Kurt Zeilenga
5c878c1bf2
Happy new year (belated)
2014-01-25 05:21:25 -08:00
Howard Chu
ac9ac0094e
ITS#7749 more for prev commit
2013-11-21 11:18:24 -08:00
Howard Chu
06e384d55b
ITS#7749 propagate op->o_extra in syncprov_findbase
2013-11-14 19:16:57 -08:00
Howard Chu
6711876a35
Fix CONFIG_DELETE crash
...
Closing a connection can abandon its ops without going thru the threadpool,
so make sure to lock the si_ops_mutex before walking the list.
2013-11-05 12:59:56 -08:00
Quanah Gibson-Mount
1a712bf18e
Enable features that were hidden behind LDAP_DEVEL
2013-09-19 09:50:52 -07:00
Kurt Zeilenga
0fd1bf30b8
Happy New Year
2013-01-02 10:22:57 -08:00
Howard Chu
babfce7d0f
ITS#7172 don't reference ops in syncprov locks
...
When a client performs a write and then closes the connection without
sending an Unbind request, the connection cleanup can race with the
op cleanup.
2012-08-15 14:36:35 -07:00
Howard Chu
c73ec15022
ITS#7292 more accesslog,syncprov leaks
2012-06-08 07:33:59 -07:00
Howard Chu
a8d1783550
ITS#7292 more syncprov control leaks
2012-06-08 05:09:45 -07:00
Howard Chu
96876a171a
ITS#7292 more syncprov leaks
2012-06-07 16:02:45 -07:00
Howard Chu
4dba1f6963
ITS#7292 plug memleaks in accesslog,syncprov
2012-06-07 11:33:20 -07:00
Howard Chu
9e6245f87e
ITS#7235 prevent sop from being freed during init
2012-04-07 10:22:56 -07:00
Hallvard Furuseth
19905a390f
ITS#7234 Fix syncprov entry leak: Set op->o_tag
2012-04-07 14:13:50 +02:00
HIRABAYASHI Satoshi
92d439a0dd
ITS#7218 fix sessionlog usability check
2012-03-28 02:48:03 -07: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
5584e5b98d
ITS#7150 fix check for already abandoned op
2012-02-03 09:35:13 -08:00
Kurt Zeilenga
2bbf9804b9
Happy New Year!
2012-01-01 07:10:53 -08:00