Esempio n. 1
0
 private void OnSlaveAdded(object sender, SlaveListEventArgs e)
 {
     if (_state == CoreState.WaitingForSlaves)
     {
         if (_nodeComms.GetActiveSlaveCount() >= _masterConfiguration.WriteQuorum)
         {
             _state = CoreState.RunningMaster;
         }
     }
 }
Esempio n. 2
0
 private void OnSlaveAdded(object sender, SlaveListEventArgs e)
 {
     if (_state == CoreState.WaitingForSlaves)
     {
         if (_nodeComms.GetActiveSlaveCount()>= _masterConfiguration.WriteQuorum)
         {
             _state = CoreState.RunningMaster;
         }
     }
 }