public boolean hasPersistedData() { return persistentOplogs.getChild() != null; }
public void forceRoll(boolean blocking) { Oplog child = persistentOplogs.getChild(); if (child != null) { child.forceRolling(null, blocking); } }
@Override public void modify(LocalRegion region, DiskEntry entry, DiskEntry.Helper.ValueWrapper value, boolean async) { getChild().modify(region, entry, value, async); }
@Override public void create(LocalRegion region, DiskEntry entry, ValueWrapper value, boolean async) { getChild().create(region, entry, value, async); }
@Override public void remove(LocalRegion region, DiskEntry entry, boolean async, boolean isClear) { getChild().remove(region, entry, async, isClear); }
public void flushChild() { Oplog oplog = getChild(); if (oplog != null) { oplog.flushAll(); } }
@Override public void create(LocalRegion region, DiskEntry entry, DiskEntry.Helper.ValueWrapper value, boolean async) { getChild().create(region, entry, value, async); }
@Override public void remove(LocalRegion region, DiskEntry entry, boolean async, boolean isClear) { getChild().remove(region, entry, async, isClear); }
/** * returns the active child */ final Oplog testHook_getChild() { return getDiskStore().persistentOplogs.getChild(); }
public void forceRoll(DiskRegion dr) { Oplog child = getChild(); if (child != null) { child.forceRolling(dr, false); } }
@Override public void modify(LocalRegion region, DiskEntry entry, ValueWrapper value, boolean async) { getChild().modify(region, entry, value, async); }
public void flushChild() { Oplog oplog = getChild(); if (oplog != null) { oplog.flushAll(); } }
/** * returns the active child */ final Oplog testHook_getChild() { return getDiskStore().persistentOplogs.getChild(); }
public void forceRoll(DiskRegion dr) { Oplog child = getChild(); if (child != null) { child.forceRolling(dr); } }
public void initChild() { if (getChild() == null) { setFirstChild(getSortedOplogs(), true); } }
public void initChild() { if (getChild() == null) { setFirstChild(getSortedOplogs(), true); } }
public void replaceIncompatibleEntry(DiskEntry old, DiskEntry repl) { acquireReadLock(); try { getOplogSet().getChild().replaceIncompatibleEntry(this, old, repl); } finally { releaseReadLock(); } }
public void replaceIncompatibleEntry(DiskEntry old, DiskEntry repl) { acquireReadLock(); try { getOplogSet().getChild().replaceIncompatibleEntry(this, old, repl); } finally { releaseReadLock(); } } }
/** * The oplogId in re points to the oldOplogId. "this" oplog is the current * oplog. */ private void updateRecoveredEntry(DiskRegionView drv, DiskEntry de, DiskEntry.RecoveredEntry re) { if (getOplogId() != re.getOplogId()) { Oplog oldOplog = getOplogSet().getChild(re.getOplogId()); oldOplog.rmLive(drv, de); initRecoveredEntry(drv, de); } else { getDRI(drv).update(de); } }
/** * The oplogId in re points to the oldOplogId. * "this" oplog is the current oplog. */ private void updateRecoveredEntry(DiskRegionView drv, DiskEntry de, DiskEntry.RecoveredEntry re) { if (getOplogId() != re.getOplogId()) { Oplog oldOplog = getOplogSet().getChild(re.getOplogId()); oldOplog.rmLive(drv, de); initRecoveredEntry(drv, de); } else { getDRI(drv).update(de); } }