// Token: 0x06001C68 RID: 7272 RVA: 0x0007CDA4 File Offset: 0x0007AFA4 public void SetE00LogGeneration(long e00generation) { FileState.InternalCheck(e00generation > 0L, "e00generation should be greater than 0!", new object[0]); lock (this) { this.InternalCheck(); this.m_e00Generation = new long?(e00generation); this.InternalCheck(); } }
// Token: 0x06001C66 RID: 7270 RVA: 0x0007CC70 File Offset: 0x0007AE70 public void SetLowestGenerationPresent(long lowestGenerationPresent) { lock (this) { FileState.InternalCheck(lowestGenerationPresent <= this.m_highestGenerationPresent, "LowestGenerationPresent > HighestGenerationPresent", new object[0]); this.InternalCheck(); this.m_lowestGenerationPresent = lowestGenerationPresent; this.InternalCheck(); } }
// Token: 0x06001C8B RID: 7307 RVA: 0x0007DA38 File Offset: 0x0007BC38 private static void TestInternalCheck() { FileState.InternalCheck(true, "This InternalCheck should not fire", new object[0]); try { FileState.InternalCheck(false, "This InternalCheck should fire", new object[0]); DiagCore.RetailAssert(false, "Should have thrown FileStateInternalErrorException", new object[0]); } catch (FileStateInternalErrorException) { } }
// Token: 0x06001C63 RID: 7267 RVA: 0x0007CAFC File Offset: 0x0007ACFC public void InternalCheckLogfileSignature() { lock (this) { if (0L != this.LowestGenerationPresent) { FileState.InternalCheck(this.LogfileSignature != null, "Logfiles are present, but LogfileSignature is not set", new object[0]); } if (0L != this.LowestGenerationRequired) { FileState.InternalCheck(this.LogfileSignature != null, "Logfiles are required, but LogfileSignature is not set", new object[0]); } } }
// Token: 0x06001C62 RID: 7266 RVA: 0x0007C8F8 File Offset: 0x0007AAF8 public void InternalCheck() { lock (this) { FileState.InternalCheck(this.m_lowestGenerationPresent <= this.m_highestGenerationPresent, "LowestGenerationPresent > HighestGenerationPresent", new object[0]); FileState.InternalCheck(this.m_lowestGenerationRequired <= this.m_highestGenerationRequired, "LowestGenerationRequired > HighestGenerationRequired", new object[0]); if (0L == this.m_lowestGenerationPresent) { FileState.InternalCheck(0L == this.m_highestGenerationPresent, "LowestGenerationPresent is 0, but HighestGenerationPresent is set", new object[0]); } else { FileState.InternalCheck(0L != this.m_highestGenerationPresent, "LowestGenerationPresent is set, but HighestGenerationPresent is 0", new object[0]); } if (0L == this.m_lowestGenerationRequired) { FileState.InternalCheck(0L == this.m_highestGenerationRequired, "LowestGenerationRequired is 0, but HighestGenerationRequired is set", new object[0]); } else { FileState.InternalCheck(0L != this.m_highestGenerationRequired, "LowestGenerationRequired is set, but HighestGenerationRequired is 0", new object[0]); } if (this.m_consistentDatabase) { FileState.InternalCheck(this.m_highestGenerationRequired == this.m_lowestGenerationRequired, "ConsistentDatabase is true, but HighestGenerationRequired != LowestGenerationRequired", new object[0]); } if (this.m_highestGenerationRequired != this.m_lowestGenerationRequired) { FileState.InternalCheck(!this.m_consistentDatabase, "HighestGenerationRequired != LowestGenerationRequired but ConsistentDatabase is true", new object[0]); } if (this.m_latestFullBackupTime != null) { FileState.InternalCheck(this.m_lastGenerationBackedUp > 0L, "m_latestFullBackupTime is set, but m_lastGenerationBackedUp is not set", new object[0]); } if (this.m_latestIncrementalBackupTime != null) { FileState.InternalCheck(this.m_lastGenerationBackedUp > 0L, "m_latestIncrementalBackupTime is set, but m_lastGenerationBackedUp is not set", new object[0]); FileState.InternalCheck(this.m_latestFullBackupTime != null, "m_latestIncrementalBackupTime is set, but m_latestFullBackupTime is not set", new object[0]); } if (this.m_latestDifferentialBackupTime != null) { FileState.InternalCheck(this.m_lastGenerationBackedUp > 0L, "m_latestDifferentialBackupTime is set, but m_lastGenerationBackedUp is not set", new object[0]); FileState.InternalCheck(this.m_latestFullBackupTime != null, "m_latestDifferentialBackupTime is set, but m_latestFullBackupTime is not set", new object[0]); } } }
// Token: 0x06001C65 RID: 7269 RVA: 0x0007CBD4 File Offset: 0x0007ADD4 public void SetLowestAndHighestGenerationsPresent(long lowestGenerationPresent, long highestGenerationPresent) { FileState.InternalCheck(lowestGenerationPresent <= highestGenerationPresent, "lowestGenerationPresent > highestGenerationPresent", new object[0]); if (lowestGenerationPresent == 0L) { FileState.InternalCheck(highestGenerationPresent == 0L, "Highest gen must be 0 when low gen is 0", new object[0]); } if (highestGenerationPresent == 0L) { FileState.InternalCheck(lowestGenerationPresent == 0L, "Lowest gen must be 0 when hi gen is 0", new object[0]); } lock (this) { this.InternalCheck(); this.m_lowestGenerationPresent = lowestGenerationPresent; this.m_highestGenerationPresent = highestGenerationPresent; this.InternalCheck(); } }
// Token: 0x06001C67 RID: 7271 RVA: 0x0007CCD4 File Offset: 0x0007AED4 public void SetLowestAndHighestGenerationsRequired(long lowestGenerationRequired, long highestGenerationRequired, bool databaseIsConsistent) { FileState.InternalCheck(lowestGenerationRequired >= 0L, "lowestGenerationRequired should be greater than 0 but we got {0}", new object[] { lowestGenerationRequired }); FileState.InternalCheck(highestGenerationRequired >= 0L, "highestGenerationRequired should be greater than 0 but we got {0}", new object[] { highestGenerationRequired }); FileState.InternalCheck(lowestGenerationRequired <= highestGenerationRequired, "lowestGenerationRequired > highestGenerationRequired", new object[0]); FileState.InternalCheck(!databaseIsConsistent || lowestGenerationRequired == highestGenerationRequired, "lowestGenerationRequired != highestGenerationRequired, but the database is consistent", new object[0]); lock (this) { this.InternalCheck(); this.m_lowestGenerationRequired = lowestGenerationRequired; this.m_highestGenerationRequired = highestGenerationRequired; this.m_consistentDatabase = databaseIsConsistent; this.InternalCheck(); } }