void cleanup(InternalRegion r) { if (this.cleanedUp) return; this.cleanedUp = true; Iterator it = this.entryMods.values().iterator(); while (it.hasNext()) { TXEntryState es = (TXEntryState) it.next(); es.cleanup(r); } this.region.setInUseByTransaction(false); }
/** * If the entry is not dirty (read only) then clean it up. * * @return true if this entry is not dirty. */ boolean cleanupNonDirty(InternalRegion r) { if (isDirty()) { return false; } else { cleanup(r); return true; } }