Beispiel #1
0
        public void Recover(Guid guid, ICheckpointManager checkpointManager)
        {
            var metadata = checkpointManager.GetIndexCommitMetadata(guid);

            if (metadata == null)
            {
                throw new FasterException("Invalid index commit metadata for ID " + guid.ToString());
            }
            Initialize(new StreamReader(new MemoryStream(metadata)));
        }