define hasPrimary in replica
@@ -339,6 +339,10 @@ class Replica(HasActionQueue, MessageProcessor):
return self._primaryName == self.name if self._primaryName is not None \
else None
+ @property
+ def hasPrimary(self):
+ return self.primaryName is not None
+
@property
def primaryName(self):
"""
