public void forceRoll(boolean blocking) { Oplog child = persistentOplogs.getChild(); if (child != null) { child.forceRolling(null, blocking); } }
public void forceRoll(DiskRegion dr) { Oplog child = getChild(); if (child != null) { child.forceRolling(dr, false); } }
public void forceRoll(DiskRegion dr) { Oplog child = getChild(); if (child != null) { child.forceRolling(dr); } }
boolean basicForceCompaction(DiskRegion dr) { PersistentOplogSet oplogSet = persistentOplogs; // see if the current active oplog is compactable; if so { Oplog active = oplogSet.getChild(); if (active != null) { if (active.hadLiveEntries() && active.needsCompaction()) { active.forceRolling(dr); } } } //Compact the oplogs CompactableOplog[] oplogs = getOplogsToBeCompacted(true/* fixes 41143 */); // schedule a compaction if at this point there are oplogs to be compacted if (oplogs != null) { if (this.oplogCompactor != null) { if (this.oplogCompactor.scheduleIfNeeded(oplogs)) { this.oplogCompactor.waitForRunToComplete(); } else { oplogs = null; // @todo darrel: still need to schedule oplogs and wait for them to // compact. } } } return oplogs != null; }
boolean basicForceCompaction(DiskRegion dr) { PersistentOplogSet oplogSet = persistentOplogs; // see if the current active oplog is compactable; if so { Oplog active = oplogSet.getChild(); if (active != null) { if (active.hadLiveEntries() && active.needsCompaction()) { active.forceRolling(dr, false); } } } //Compact the oplogs CompactableOplog[] oplogs = getOplogsToBeCompacted(true/* fixes 41143 */); // schedule a compaction if at this point there are oplogs to be compacted if (oplogs != null) { if (this.oplogCompactor != null) { if (this.oplogCompactor.scheduleIfNeeded(oplogs)) { this.oplogCompactor.waitForRunToComplete(); } else { oplogs = null; // logger.info(LocalizedStrings.DEBUG, "DEBUG: todo "); // @todo darrel: still need to schedule oplogs and wait for them to // compact. } } } return oplogs != null; }
Thread.yield(); DiskRegion dr = ((LocalRegion)region).getDiskRegion(); dr.testHook_getChild().forceRolling(dr, false);