Esempio n. 1
0
 /// <summary>Transition edit log to a new state, logging as necessary.</summary>
 private void SetState(BackupImage.BNState newState)
 {
     lock (this)
     {
         if (Log.IsDebugEnabled())
         {
             Log.Debug("State transition " + bnState + " -> " + newState);
         }
         bnState = newState;
     }
 }
Esempio n. 2
0
 /// <summary>Construct a backup image.</summary>
 /// <param name="conf">Configuration</param>
 /// <exception cref="System.IO.IOException">if storage cannot be initialised.</exception>
 internal BackupImage(Configuration conf)
     : base(conf)
 {
     storage.SetDisablePreUpgradableLayoutCheck(true);
     bnState = BackupImage.BNState.DropUntilNextRoll;
 }