diff --git a/cs/src/core/Index/FASTER/Checkpoint.cs b/cs/src/core/Index/FASTER/Checkpoint.cs index a2dac4b03..46e3fb718 100644 --- a/cs/src/core/Index/FASTER/Checkpoint.cs +++ b/cs/src/core/Index/FASTER/Checkpoint.cs @@ -180,7 +180,7 @@ private bool GlobalMoveToNextState(SystemState currentState, SystemState nextSta } case Phase.INDEX_CHECKPOINT: { - if (UseReadCache) + if (UseReadCache && this.ReadCache.BeginAddress != this.ReadCache.TailAddress) { throw new Exception("Index checkpoint with read cache is not supported"); } @@ -203,7 +203,7 @@ private bool GlobalMoveToNextState(SystemState currentState, SystemState nextSta } case Phase.PREP_INDEX_CHECKPOINT: { - if (UseReadCache) + if (UseReadCache && this.ReadCache.BeginAddress != this.ReadCache.TailAddress) { throw new Exception("Index checkpoint with read cache is not supported"); } @@ -766,7 +766,7 @@ private void InitializeHybridLogCheckpoint(Guid hybridLogToken, int version) directoryConfiguration.CreateHybridLogCheckpointFolder(hybridLogToken); _hybridLogCheckpoint.Initialize(hybridLogToken, version); } - + #endregion } }