summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/mirror_reads.js
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2020-02-27 00:32:09 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-02 19:10:35 +0000
commit8c0293225af97f60131db8754f89be24cfd42174 (patch)
tree3d482dd61f55a35a807e5f37f8533d523ce537b5 /jstests/noPassthrough/mirror_reads.js
parente29b8e770f26bfd3f9f4529ed139fcd19cfd2b2d (diff)
downloadmongo-8c0293225af97f60131db8754f89be24cfd42174.tar.gz
SERVER-45818 Rework read mirroring infrastructure
This commit: - Fixes a busy polling bug in the TopologyVersionObserver - Alters the MirroringSampler to sample in bursts - Adjusts the MirrorMaestro to make use of the changed MirroringSampler - Disables update command mirroring temporarily
Diffstat (limited to 'jstests/noPassthrough/mirror_reads.js')
-rw-r--r--jstests/noPassthrough/mirror_reads.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/mirror_reads.js b/jstests/noPassthrough/mirror_reads.js
index 692a9ada958..03d6772ddad 100644
--- a/jstests/noPassthrough/mirror_reads.js
+++ b/jstests/noPassthrough/mirror_reads.js
@@ -45,7 +45,7 @@ function sendAndCheckReads({rst, cmd, minRate, maxRate}) {
let numNodes = rst.getSecondaries().length;
jsTestLog(`Seen ${readsSeen} requests; ` +
- `verified ${readsMirrored / 2} requests ` +
+ `verified ${readsMirrored / numNodes} requests ` +
`x ${numNodes} nodes`);
let rate = readsMirrored / readsSeen / numNodes;