diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-10 01:21:01 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-10 01:59:35 -0400 |
commit | c36f9ecb91e49da7e637863889804fc4e6c6c05e (patch) | |
tree | 64d8aadb6d29042d4f4e7366bc1457e4e0612383 /src/mongo/shell/bench.cpp | |
parent | c9548e729c8fecd9d7a9a5dd341da0433194ac73 (diff) | |
download | mongo-c36f9ecb91e49da7e637863889804fc4e6c6c05e.tar.gz |
SERVER-39339 Remove `stdx/memory.h`
Diffstat (limited to 'src/mongo/shell/bench.cpp')
-rw-r--r-- | src/mongo/shell/bench.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp index 9d8cea8639f..cc523d8ac77 100644 --- a/src/mongo/shell/bench.cpp +++ b/src/mongo/shell/bench.cpp @@ -290,7 +290,7 @@ void doNothing(const BSONObj&) {} Timestamp getLatestClusterTime(DBClientBase* conn) { // Sort by descending 'ts' in the query to the oplog collection. The first entry will have the // latest cluster time. - auto qr = stdx::make_unique<QueryRequest>(NamespaceString("local.oplog.rs")); + auto qr = std::make_unique<QueryRequest>(NamespaceString("local.oplog.rs")); qr->setSort(BSON("$natural" << -1)); qr->setLimit(1LL); qr->setWantMore(false); @@ -983,7 +983,7 @@ void BenchRunOp::executeOnce(DBClientBase* conn, BSONObj fixedQuery = fixQuery(this->query, *state->bsonTemplateEvaluator); BSONObj result; if (this->useReadCmd) { - auto qr = stdx::make_unique<QueryRequest>(NamespaceString(this->ns)); + auto qr = std::make_unique<QueryRequest>(NamespaceString(this->ns)); qr->setFilter(fixedQuery); qr->setProj(this->projection); qr->setLimit(1LL); @@ -1066,7 +1066,7 @@ void BenchRunOp::executeOnce(DBClientBase* conn, "cannot use 'options' in combination with read commands", !this->options); - auto qr = stdx::make_unique<QueryRequest>(NamespaceString(this->ns)); + auto qr = std::make_unique<QueryRequest>(NamespaceString(this->ns)); qr->setFilter(fixedQuery); qr->setProj(this->projection); if (this->skip) { @@ -1403,7 +1403,7 @@ void BenchRunner::start() { // Make a unique random seed for the worker. const int64_t seed = _config->randomSeed + i; - auto worker = stdx::make_unique<BenchRunWorker>(i, _config.get(), _brState, seed); + auto worker = std::make_unique<BenchRunWorker>(i, _config.get(), _brState, seed); worker->start(); _workers.push_back(std::move(worker)); |