jenkins-bot has submitted this change and it was merged.

Change subject: The replica count can also be 'false' to disable replicas
......................................................................


The replica count can also be 'false' to disable replicas

Change-Id: I44c84a52a6e7387e6ae4596d397bba36024cca0c
---
M includes/ClusterSettings.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Smalyshev: Looks good to me, approved
  Cindy-the-browser-test-bot: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/includes/ClusterSettings.php b/includes/ClusterSettings.php
index f32a04d..a4628e0 100644
--- a/includes/ClusterSettings.php
+++ b/includes/ClusterSettings.php
@@ -46,7 +46,9 @@
 
        /**
         * @param string $indexType
-        * @return string Number of replicas Elasticsearch can expand or 
contract to.
+        * @return string Number of replicas Elasticsearch can expand or 
contract to
+        *  in the format of '0-2' for the minimum and maximum number of 
replicas. May
+        *  also be the string 'false' when replicas are disabled.
         */
        public function getReplicaCount( $indexType ) {
                $settings = $this->config->get( 'CirrusSearchReplicas' );

-- 
To view, visit https://gerrit.wikimedia.org/r/244744
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I44c84a52a6e7387e6ae4596d397bba36024cca0c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Cindy-the-browser-test-bot <[email protected]>
Gerrit-Reviewer: DCausse <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to