/// <summary> /// Recover info from token /// </summary> /// <param name="token"></param> /// <param name="checkpointManager"></param> /// <returns></returns> internal void Recover(Guid token, ICheckpointManager checkpointManager) { var metadata = checkpointManager.GetLogCommitMetadata(token); if (metadata == null) { throw new FasterException("Invalid log commit metadata for ID " + token.ToString()); } Initialize(new StreamReader(new MemoryStream(metadata))); }