Fix issue #4507. Improve performances of searches in ELC with bounded filters, like (&(changeNumber>=0)(changeNumber<=999))
Also remove a concurrent modification exception in online init, detected with unit tests.
| | |
| | | break; |
| | | } |
| | | } // while DraftCN |
| | | } |
| | | } // if draftCompat |
| | | |
| | | // here we have the right oldest change |
| | | // and in the draft case, we have its draft changenumber |
| | |
| | | { |
| | | domainCtxts[iDom].active = false; |
| | | } |
| | | |
| | | if (draftCompat && (lastDraftCN>0) && |
| | | (oldestChange.getDraftChangeNumber()>lastDraftCN)) |
| | | { |
| | | domainCtxts[iDom].active = false; |
| | | } |
| | | if (domainCtxts[iDom].active) |
| | | { |
| | | // populates the table with the next eligible msg from idomain |
| | |
| | | done = true; |
| | | short reconnectMaxDelayInSec = 10; |
| | | short reconnectWait = 0; |
| | | for (int serverId : replicasWeAreWaitingFor) |
| | | Integer[] servers = replicasWeAreWaitingFor.toArray(new Integer[0]); |
| | | for (int serverId : servers) |
| | | { |
| | | if (ieContext.failureList.contains(serverId)) |
| | | { |