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