Example #1
0
 internal TruncateHeadLogRecord(LogRecordType recordType, ulong recordPosition, long lsn)
     : base(recordType, recordPosition, lsn)
 {
     Utility.Assert(recordType == LogRecordType.TruncateHead, "recordType == LogRecordType.TruncateHead");
     this.truncationState             = TruncationState.Invalid;
     this.isStable                    = false;
     this.periodicTruncationTimeTicks = 0;
 }
Example #2
0
        internal static void Assert(bool condition, string format, TruncationState param1)
        {
            if (condition == false)
            {
                var failFastMessage = string.Format(System.Globalization.CultureInfo.InvariantCulture, format, param1);
                FailFast(failFastMessage);

                // AMW - Force break into debugger for ease of debugging
                Debugger.Break();
            }
        }
Example #3
0
 internal TruncateHeadLogRecord(
     IndexingLogRecord logHeadRecord,
     LogicalSequenceNumber lsn,
     PhysicalLogRecord lastLinkedPhysicalRecord,
     bool isStable,
     long periodicTruncationTimeTicks)
     : base(LogRecordType.TruncateHead, logHeadRecord, lsn, lastLinkedPhysicalRecord)
 {
     this.truncationState             = TruncationState.Invalid;
     this.isStable                    = isStable;
     this.periodicTruncationTimeTicks = periodicTruncationTimeTicks;
     this.UpdateApproximateDiskSize();
 }