refs #7637
Change-Id: Ia26059c496fae22538e7c398924c9294d638d248
private void swapChunks() throws AcornAccessVerificationException, IllegalAcornStateException {
// Cache chunks during update operations
private void swapChunks() throws AcornAccessVerificationException, IllegalAcornStateException {
// Cache chunks during update operations
- boolean written = clusters.streamLRU.swap(Integer.MAX_VALUE, CHUNK_CACHE_SIZE);
- while(written) {
- written = clusters.streamLRU.swap(Integer.MAX_VALUE, CHUNK_CACHE_SIZE);
- }
+ while(clusters.streamLRU.swap(Long.MAX_VALUE, CHUNK_CACHE_SIZE));
}
private void swapCS() throws AcornAccessVerificationException, IllegalAcornStateException {
// Cache chunks during update operations
}
private void swapCS() throws AcornAccessVerificationException, IllegalAcornStateException {
// Cache chunks during update operations
- boolean written = clusters.csLRU.swap(Integer.MAX_VALUE, CHUNK_CACHE_SIZE);
- while(written) {
- written = clusters.csLRU.swap(Integer.MAX_VALUE, CHUNK_CACHE_SIZE);
- }
+ while(clusters.csLRU.swap(Long.MAX_VALUE, CHUNK_CACHE_SIZE));
}
public synchronized void committed() {
}
public synchronized void committed() {