summaryrefslogtreecommitdiff
path: root/src/mongo/shell/bench.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2018-04-26 11:05:53 -0400
committerBenety Goh <benety@mongodb.com>2018-04-26 11:05:53 -0400
commit810b253e98ca094743288f8174da876af47fa8f8 (patch)
tree139a78c6d9b50680aa3d64ad5f32edbe7273ce5d /src/mongo/shell/bench.cpp
parent316bcc98e2b89e266493612ee1cf4680a0265e0f (diff)
downloadmongo-810b253e98ca094743288f8174da876af47fa8f8.tar.gz
SERVER-34364 replace references to invariantOK with invariant
Diffstat (limited to 'src/mongo/shell/bench.cpp')
-rw-r--r--src/mongo/shell/bench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp
index eb392fcab34..c188680d230 100644
--- a/src/mongo/shell/bench.cpp
+++ b/src/mongo/shell/bench.cpp
@@ -867,7 +867,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
if (_config->useSnapshotReads) {
qr->setReadConcern(readConcernSnapshot);
}
- invariantOK(qr->validate());
+ invariant(qr->validate());
BenchRunEventTrace _bret(&stats.findOneCounter);
boost::optional<TxnNumber> txnNumberForOp;
@@ -993,7 +993,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) {
if (_config->useSnapshotReads) {
qr->setReadConcern(readConcernSnapshot);
}
- invariantOK(qr->validate());
+ invariant(qr->validate());
BenchRunEventTrace _bret(&stats.queryCounter);
boost::optional<TxnNumber> txnNumberForOp;