public static void TryNotToKeep(this TFChunkScavenger.CommitInfo commitInfo)
 {
     // If someone decided definitely to keep corresponding commit then we shouldn't interfere.
     // Otherwise we should point that yes, you can remove commit for this prepare.
     if (commitInfo != null)
         commitInfo.KeepCommit = commitInfo.KeepCommit ?? false;
 }
예제 #2
0
 public static void ForciblyKeep(this TFChunkScavenger.CommitInfo commitInfo)
 {
     if (commitInfo != null)
     {
         commitInfo.KeepCommit = true;
     }
 }