summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/shell_utils.cpp')
-rw-r--r--src/mongo/shell/shell_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils.cpp b/src/mongo/shell/shell_utils.cpp
index 28ebda1afaa..3979d5b2010 100644
--- a/src/mongo/shell/shell_utils.cpp
+++ b/src/mongo/shell/shell_utils.cpp
@@ -413,7 +413,7 @@ BSONObj replMonitorStats(const BSONObj& a, void* data) {
a.nFields() == 1 && a.firstElement().type() == String);
auto name = a.firstElement().valuestrsafe();
- ReplicaSetMonitorPtr rsm = ReplicaSetMonitor::get(name);
+ auto rsm = ReplicaSetMonitor::get(name);
if (!rsm) {
return BSON(""
<< "no ReplSetMonitor exists by that name");