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;
 }
Ejemplo n.º 2
0
 public static void ForciblyKeep(this TFChunkScavenger.CommitInfo commitInfo)
 {
     if (commitInfo != null)
     {
         commitInfo.KeepCommit = true;
     }
 }