summaryrefslogtreecommitdiff
path: root/src/mongo/shell/bench.cpp
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2019-06-10 01:21:01 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-06-10 01:59:35 -0400
commitc36f9ecb91e49da7e637863889804fc4e6c6c05e (patch)
tree64d8aadb6d29042d4f4e7366bc1457e4e0612383 /src/mongo/shell/bench.cpp
parentc9548e729c8fecd9d7a9a5dd341da0433194ac73 (diff)
downloadmongo-c36f9ecb91e49da7e637863889804fc4e6c6c05e.tar.gz
SERVER-39339 Remove `stdx/memory.h`
Diffstat (limited to 'src/mongo/shell/bench.cpp')
-rw-r--r--src/mongo/shell/bench.cpp8
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));