public void Visit(int numOutstandingMmaps, IDictionary <ExtendedBlockId, ShortCircuitReplica > replicas, IDictionary <ExtendedBlockId, SecretManager.InvalidToken> failedLoads , IDictionary <long, ShortCircuitReplica> evictable, IDictionary <long, ShortCircuitReplica > evictableMmapped) { NUnit.Framework.Assert.AreEqual(expectedOutstandingMmaps, numOutstandingMmaps); ShortCircuitReplica replica = replicas[ExtendedBlockId.FromExtendedBlock(block)]; NUnit.Framework.Assert.IsNotNull(replica); ShortCircuitShm.Slot slot = replica.GetSlot(); if ((expectedIsAnchorable != slot.IsAnchorable()) || (expectedIsAnchored != slot. IsAnchored())) { TestEnhancedByteBufferAccess.Log.Info("replica " + replica + " has isAnchorable = " + slot.IsAnchorable() + ", isAnchored = " + slot.IsAnchored() + ". Waiting for isAnchorable = " + expectedIsAnchorable + ", isAnchored = " + expectedIsAnchored); return; } result.SetValue(true); }
internal virtual void ForceAnchorable() { replica.GetSlot().MakeAnchorable(); }