summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2020-10-20 22:12:53 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-26 16:38:32 +0000
commit0c09bf00d7fdadc80215f7cd4829271c2e6a0dc8 (patch)
tree8aa874228884509b62849d59e8b0b7c4267e62db /src/mongo/scripting
parent051ad2e47f7ce1f5b76d89b65515c23777791919 (diff)
downloadmongo-0c09bf00d7fdadc80215f7cd4829271c2e6a0dc8.tar.gz
SERVER-50508 Rename ConnectionType::MASTER to ConnectionType::kStandalone
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r--src/mongo/scripting/mozjs/mongo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/mongo.cpp b/src/mongo/scripting/mozjs/mongo.cpp
index 6849e636391..deddb13466d 100644
--- a/src/mongo/scripting/mozjs/mongo.cpp
+++ b/src/mongo/scripting/mozjs/mongo.cpp
@@ -763,7 +763,7 @@ void MongoBase::Functions::isReplicaSetConnection::call(JSContext* cx, JS::CallA
uasserted(ErrorCodes::BadValue, "isReplicaSetConnection takes no args");
}
- args.rval().setBoolean(conn->type() == ConnectionString::ConnectionType::SET);
+ args.rval().setBoolean(conn->type() == ConnectionString::ConnectionType::kReplicaSet);
}
void MongoBase::Functions::_markNodeAsFailed::call(JSContext* cx, JS::CallArgs args) {