summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/mirror_maestro.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/mirror_maestro.cpp b/src/mongo/db/mirror_maestro.cpp
index 3471820ed75..31d9de386d9 100644
--- a/src/mongo/db/mirror_maestro.cpp
+++ b/src/mongo/db/mirror_maestro.cpp
@@ -307,7 +307,11 @@ void MirrorMaestroImpl::_mirror(std::vector<HostAndPort> hosts,
return;
}
- invariant(args.response.isOK());
+ if (MONGO_unlikely(!args.response.isOK())) {
+ LOGV2_FATAL(4717301,
+ "Received mirroring response with a non-okay status",
+ "error"_attr = args.response);
+ }
gMirroredReadsSection.resolved.fetchAndAdd(1);
LOGV2_DEBUG(