Example #1
0
        private void ProcessSystemRecord(SystemLogRecord record)
        {
            CommitPendingTransaction(_transaction, isTfEof: true);

            if (record.SystemRecordType == SystemRecordType.Epoch)
            {
                // Epoch record is written to TF, but possibly is not added to EpochManager
                // as we could be in Slave\Clone mode. We try to add epoch to EpochManager
                // every time we encounter EpochRecord while chasing. SetLastEpoch call is idempotent,
                // but does integrity checks.
                var epoch = record.GetEpochRecord();
                _epochManager.SetLastEpoch(epoch);
            }
        }