This commit is contained in:
Clebert Suconic 2018-03-06 10:20:32 -05:00
commit 9becaeb6b6
1 changed files with 4 additions and 2 deletions

View File

@ -334,7 +334,9 @@ final class PageSubscriptionImpl implements PageSubscription {
} }
infoPG.acks.clear(); infoPG.acks.clear();
infoPG.acks = Collections.synchronizedSet(new LinkedHashSet<PagePosition>());
infoPG.removedReferences.clear(); infoPG.removedReferences.clear();
infoPG.removedReferences = new ConcurrentHashSet<>();
} }
tx.addOperation(new TransactionOperationAbstract() { tx.addOperation(new TransactionOperationAbstract() {
@ -901,11 +903,11 @@ final class PageSubscriptionImpl implements PageSubscription {
private final long pageId; private final long pageId;
// Confirmed ACKs on this page // Confirmed ACKs on this page
private final Set<PagePosition> acks = Collections.synchronizedSet(new LinkedHashSet<PagePosition>()); private Set<PagePosition> acks = Collections.synchronizedSet(new LinkedHashSet<PagePosition>());
private WeakReference<PageCache> cache; private WeakReference<PageCache> cache;
private final Set<PagePosition> removedReferences = new ConcurrentHashSet<>(); private Set<PagePosition> removedReferences = new ConcurrentHashSet<>();
// The page was live at the time of the creation // The page was live at the time of the creation
private final boolean wasLive; private final boolean wasLive;