Skip to content

Commit

Permalink
Allowing index checkpointing if read cache is not yet used
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfreiling committed May 7, 2019
1 parent 2aafa01 commit afa6525
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cs/src/core/Index/FASTER/Checkpoint.cs
Expand Up @@ -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");
}
Expand All @@ -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");
}
Expand Down Expand Up @@ -766,7 +766,7 @@ private void InitializeHybridLogCheckpoint(Guid hybridLogToken, int version)
directoryConfiguration.CreateHybridLogCheckpointFolder(hybridLogToken);
_hybridLogCheckpoint.Initialize(hybridLogToken, version);
}

#endregion
}
}

0 comments on commit afa6525

Please sign in to comment.