From 42c264630fa1e7d5924c291a9eeac6522d70f31e Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Wed, 17 Jan 2018 17:47:05 -0500 Subject: SERVER-25345 remove wassert --- src/mongo/db/repl/replication_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/repl') diff --git a/src/mongo/db/repl/replication_info.cpp b/src/mongo/db/repl/replication_info.cpp index ebcbb8034ab..2a772d192dd 100644 --- a/src/mongo/db/repl/replication_info.cpp +++ b/src/mongo/db/repl/replication_info.cpp @@ -126,7 +126,7 @@ void appendReplicationInfo(OperationContext* opCtx, BSONObjBuilder& result, int } if (level > 1) { - wassert(!opCtx->lockState()->isLocked()); + invariant(!opCtx->lockState()->isLocked()); // note: there is no so-style timeout on this connection; perhaps we should have // one. ScopedDbConnection conn(s["host"].valuestr()); -- cgit v1.2.1