コード例 #1
0
ファイル: BackupImage.cs プロジェクト: orf53975/hadoop.net
 /// <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;
     }
 }
コード例 #2
0
ファイル: BackupImage.cs プロジェクト: orf53975/hadoop.net
 /// <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;
 }