[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "retry_deux" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Apr 24 16:49:09 CDT 2012


branch "retry_deux" has been updated
       via  23e022af80f56216670e777d79b850451d06451b (commit)
      from  bf7bab7d283fb71926ddd39f89f1f38dc302d67b (commit)

Summary of changes:
 src/Component/Component.cpp |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)


- Log -----------------------------------------------------------------
commit 23e022af80f56216670e777d79b850451d06451b
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Tue Apr 24 16:47:37 2012 -0500

    Default components in a replica group to Standby mode. External activation required.

diff --git a/src/Component/Component.cpp b/src/Component/Component.cpp
index ea42539..e05c3f4 100644
--- a/src/Component/Component.cpp
+++ b/src/Component/Component.cpp
@@ -670,16 +670,11 @@ void Component::initReplicationContext()
         }
         else
         {
-            // NOTE: In the near future, Standalone instances are the only 
-            // instances that will default to being active. When that is in 
-            // place, non-standalone instances will need to be made active via 
-            // the Replica interface. But for now, we default to active unless 
-            // the soon-to-be obsolete Standby property is set. 
-            if (AsteriskSCF::getBooleanPropertyValueWithDefault(mCommunicator->getProperties(),
-                     mName + ".Standby", false) == false)
-            {
-                state = ACTIVE_IN_REPLICA_GROUP;
-            }
+            // NOTE: In the past, when Standalone was false, we would default
+            // to ACTIVE_IN_REPLICA_GROUP unless the now obsolete *.Standby property
+            // was set. Now, all components in a replica group default to 
+            // STANDBY_IN_REPLICA_GROUP. Deployments must activate one via the 
+            // Replica interface. 
         }
 
         // Create the replication context.

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/ice-util-cpp.git



More information about the asterisk-scf-commits mailing list