diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2020-11-23 19:22:24 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-24 20:09:10 +0000 |
commit | 3a5d86a2cde6b84235050190d6af4fd0750e666c (patch) | |
tree | 0ec0a71ab5703c3b1bbdf23de4a81941934efcb1 | |
parent | 045dd7a5857aa1b34d6fd1d2f6e3e29900010749 (diff) | |
download | mongo-3a5d86a2cde6b84235050190d6af4fd0750e666c.tar.gz |
SERVER-53002 tassert if command mirroring fails
-rw-r--r-- | src/mongo/db/mirror_maestro.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/mirror_maestro.cpp b/src/mongo/db/mirror_maestro.cpp index fcefbfb0ed3..27728b14657 100644 --- a/src/mongo/db/mirror_maestro.cpp +++ b/src/mongo/db/mirror_maestro.cpp @@ -413,8 +413,7 @@ void MirrorMaestroImpl::_mirror(const std::vector<HostAndPort>& hosts, gMirroredReadsSection.sent.fetchAndAdd(1); } } catch (const DBException& e) { - // TODO SERVER-44570 Invariant this only in testing - LOGV2_DEBUG(31456, 2, "Mirroring failed", "reason"_attr = e); + tassert(e.toStatus()); } void MirrorMaestroImpl::init(ServiceContext* serviceContext) noexcept { |