Skip to content

Commit 4fdb6c7

Browse files
author
Dave Cuthbert
authored
DOCSP-25052-remove-sh.getBalancerHost (#1789)
* DOCSP-25052-remove-sh.getBalancerHost * Add redirect
1 parent add848a commit 4fdb6c7

12 files changed

+3
-52
lines changed

config/redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,7 @@ raw: ${prefix}/v2.8/release-notes/2.8-changes -> ${base}/v3.0/release-notes/3.0/
15711571
[v4.2-*]: ${prefix}/${version}/reference/command/getPrevError -> ${base}/${version}/reference/command/
15721572
[v4.2-*]: ${prefix}/${version}/reference/method/db.getPrevError -> ${base}/${version}/reference/method/
15731573
[v4.2-*]: ${prefix}/${version}/reference/read-preference -> ${base}/${version}/core/read-preference/
1574+
[v4.2-*]: ${prefix}/${version}/reference/method/sh.startBalancer -> ${base}/${version}/reference/method/js-sharding/
15741575

15751576
# Redirects for 4.0 or earlier (i.e. before 4.2), stopping at v3.0 since otherwise to help slow the growth in the number of our redirects
15761577

source/reference/method.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,10 +983,6 @@ Sharding
983983

984984
- Creates a database.
985985

986-
* - :method:`sh.getBalancerHost()`
987-
988-
- *Deprecated since MongoDB 3.4*
989-
990986
* - :method:`sh.getBalancerState()`
991987

992988
- Returns a boolean to report if the :term:`balancer` is currently enabled.

source/reference/method/js-sharding.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ Sharding Methods
7676

7777
- Creates a database.
7878

79-
* - :method:`sh.getBalancerHost()`
80-
81-
- *Deprecated since MongoDB 3.4*
82-
8379
* - :method:`sh.getBalancerState()`
8480

8581
- Returns a boolean to report if the :term:`balancer` is currently enabled.
@@ -184,7 +180,6 @@ Sharding Methods
184180
/reference/method/sh.disableAutoSplit
185181
/reference/method/sh.enableAutoSplit
186182
/reference/method/sh.enableSharding
187-
/reference/method/sh.getBalancerHost
188183
/reference/method/sh.getBalancerState
189184
/reference/method/sh.removeTagRange
190185
/reference/method/sh.removeRangeFromZone

source/reference/method/sh.getBalancerHost.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

source/reference/method/sh.getBalancerState.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ sh.getBalancerState()
2424

2525
- :method:`sh.enableBalancing()`
2626
- :method:`sh.disableBalancing()`
27-
- :method:`sh.getBalancerHost()`
2827
- :method:`sh.isBalancerRunning()`
2928
- :method:`sh.setBalancerState()`
3029
- :method:`sh.startBalancer()`

source/reference/method/sh.isBalancerRunning.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ The following is an example of a document returned by the command:
8787

8888
- :method:`sh.enableBalancing()`
8989
- :method:`sh.disableBalancing()`
90-
- :method:`sh.getBalancerHost()`
9190
- :method:`sh.getBalancerState()`
9291
- :method:`sh.setBalancerState()`
9392
- :method:`sh.startBalancer()`

source/reference/method/sh.setBalancerState.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ Description
5353

5454
- :method:`sh.enableBalancing()`
5555
- :method:`sh.disableBalancing()`
56-
- :method:`sh.getBalancerHost()`
5756
- :method:`sh.getBalancerState()`
5857
- :method:`sh.isBalancerRunning()`
5958
- :method:`sh.startBalancer()`

source/reference/method/sh.startBalancer.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ In earlier versions, the method waited for the balancing to start.
8484

8585
- :method:`sh.enableBalancing()`
8686
- :method:`sh.disableBalancing()`
87-
- :method:`sh.getBalancerHost()`
8887
- :method:`sh.getBalancerState()`
8988
- :method:`sh.isBalancerRunning()`
9089
- :method:`sh.setBalancerState()`

source/reference/method/sh.stopBalancer.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ to complete.
8383

8484
- :method:`sh.enableBalancing()`
8585
- :method:`sh.disableBalancing()`
86-
- :method:`sh.getBalancerHost()`
8786
- :method:`sh.getBalancerState()`
8887
- :method:`sh.isBalancerRunning()`
8988
- :method:`sh.setBalancerState()`

source/reference/method/sh.waitForBalancerOff.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ Definition
4646

4747
- :method:`sh.enableBalancing()`
4848
- :method:`sh.disableBalancing()`
49-
- :method:`sh.getBalancerHost()`
5049
- :method:`sh.getBalancerState()`
5150
- :method:`sh.isBalancerRunning()`
5251
- :method:`sh.setBalancerState()`

source/reference/sharding.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ Sharding Methods in ``mongosh``
7777

7878
- Creates a database.
7979

80-
* - :method:`sh.getBalancerHost()`
81-
82-
- *Deprecated since MongoDB 3.4*
83-
8480
* - :method:`sh.getBalancerState()`
8581

8682
- Returns a boolean to report if the :term:`balancer` is currently enabled.

source/release-notes/3.4.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ change:
576576
- :dbcommand:`balancerStatus` command.
577577

578578
- MongoDB 3.4 deprecates :binary:`~bin.mongo` shell method
579-
:method:`sh.getBalancerHost()`. A 3.2 or earlier :binary:`~bin.mongo`
580-
shell method :method:`sh.getBalancerHost()` is incompatible with a
579+
``sh.getBalancerHost()``. A 3.2 or earlier :binary:`~bin.mongo`
580+
shell method ``sh.getBalancerHost()`` is incompatible with a
581581
3.4 sharded cluster.
582582

583583
- MongoDB 3.4 removes the following configuration options from the

0 commit comments

Comments
 (0)