summaryrefslogtreecommitdiff
path: root/src/mongo/shell/utils_sh.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/utils_sh.js')
-rw-r--r--src/mongo/shell/utils_sh.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mongo/shell/utils_sh.js b/src/mongo/shell/utils_sh.js
index d60fe31c7c2..a81d4c8b303 100644
--- a/src/mongo/shell/utils_sh.js
+++ b/src/mongo/shell/utils_sh.js
@@ -16,7 +16,7 @@ sh._checkFullName = function(fullName) {
sh._adminCommand = function(cmd, skipCheck) {
if (!skipCheck)
sh._checkMongos();
- return db.getSisterDB("admin").runCommand(cmd);
+ return db.getSiblingDB("admin").runCommand(cmd);
};
sh._getConfigDB = function() {
@@ -276,7 +276,7 @@ sh.disableBalancing = function(coll) {
sh._checkMongos();
}
- return assert.commandWorked(dbase.getSisterDB("config").collections.update(
+ return assert.commandWorked(dbase.getSiblingDB("config").collections.update(
{_id: coll + ""},
{$set: {"noBalance": true}},
{writeConcern: {w: 'majority', wtimeout: 60000}}));
@@ -293,7 +293,7 @@ sh.enableBalancing = function(coll) {
sh._checkMongos();
}
- return assert.commandWorked(dbase.getSisterDB("config").collections.update(
+ return assert.commandWorked(dbase.getSiblingDB("config").collections.update(
{_id: coll + ""},
{$set: {"noBalance": false}},
{writeConcern: {w: 'majority', wtimeout: 60000}}));
@@ -309,13 +309,13 @@ sh._lastMigration = function(ns) {
var config = null;
if (!ns) {
- config = db.getSisterDB("config");
+ config = db.getSiblingDB("config");
} else if (ns instanceof DBCollection) {
coll = ns;
- config = coll.getDB().getSisterDB("config");
+ config = coll.getDB().getSiblingDB("config");
} else if (ns instanceof DB) {
dbase = ns;
- config = dbase.getSisterDB("config");
+ config = dbase.getSiblingDB("config");
} else if (ns instanceof ShardingTest) {
config = ns.s.getDB("config");
} else if (ns instanceof Mongo) {
@@ -324,11 +324,11 @@ sh._lastMigration = function(ns) {
// String namespace
ns = ns + "";
if (ns.indexOf(".") > 0) {
- config = db.getSisterDB("config");
+ config = db.getSiblingDB("config");
coll = db.getMongo().getCollection(ns);
} else {
- config = db.getSisterDB("config");
- dbase = db.getSisterDB(ns);
+ config = db.getSiblingDB("config");
+ dbase = db.getSiblingDB(ns);
}
}
@@ -554,7 +554,7 @@ function printShardingStatus(configDB, verbose) {
// configDB is a DB object that contains the sharding metadata of interest.
// Defaults to the db named "config" on the current connection.
if (configDB === undefined)
- configDB = db.getSisterDB('config');
+ configDB = db.getSiblingDB('config');
var version = configDB.getCollection("version").findOne();
if (version == null) {
@@ -785,7 +785,7 @@ function printShardingSizes(configDB) {
// configDB is a DB object that contains the sharding metadata of interest.
// Defaults to the db named "config" on the current connection.
if (configDB === undefined)
- configDB = db.getSisterDB('config');
+ configDB = db.getSiblingDB('config');
var version = configDB.getCollection("version").findOne();
if (version == null) {