diff options
author | Hugh Tong <hugh.tong@mongodb.com> | 2022-07-26 19:20:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-26 21:00:49 +0000 |
commit | 044d2f734e0dba40b9dfb02cc49c2bff8f575cd5 (patch) | |
tree | eb2d17564a0c99d2ee9ea3d2f95c81c46bcfcee1 /src/mongo/shell/bench.cpp | |
parent | 921bba175902f9b9f29751a466383c3d7e80df7b (diff) | |
download | mongo-044d2f734e0dba40b9dfb02cc49c2bff8f575cd5.tar.gz |
SERVER-67824 Rename IDLParserErrorContext to IDLParserContext
Diffstat (limited to 'src/mongo/shell/bench.cpp')
-rw-r--r-- | src/mongo/shell/bench.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp index e1a0616b9fd..2ca618d4e5f 100644 --- a/src/mongo/shell/bench.cpp +++ b/src/mongo/shell/bench.cpp @@ -630,7 +630,7 @@ BenchRunOp opFromBson(const BSONObj& op) { ReadPreference mode; try { - mode = ReadPreference_parse(IDLParserErrorContext("mode"), arg.str()); + mode = ReadPreference_parse(IDLParserContext("mode"), arg.str()); } catch (DBException& e) { e.addContext("benchRun(): Could not parse readPrefMode argument"); throw; @@ -900,8 +900,7 @@ void BenchRunWorker::generateLoadOnConnection(DBClientBase* conn) { str::stream() << "Unable to create session due to error " << result, conn->runCommand("admin", BSON("startSession" << 1), result)); - lsid.emplace( - LogicalSessionIdToClient::parse(IDLParserErrorContext("lsid"), result["id"].Obj())); + lsid.emplace(LogicalSessionIdToClient::parse(IDLParserContext("lsid"), result["id"].Obj())); } BenchRunOp::State opState(&_rng, &bsonTemplateEvaluator, &_statsBlackHole); |