diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2019-03-27 12:21:37 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2019-03-28 10:13:21 -0400 |
commit | f922827d45ce752e148185dfa3a785f7c9cf29fd (patch) | |
tree | b3ae7fdba18d9ef3384af6e0d009d091e5df14a3 /src/mongo/shell/bench.h | |
parent | f2f422d92b639edba0a10d40a43803723cb15baf (diff) | |
download | mongo-f922827d45ce752e148185dfa3a785f7c9cf29fd.tar.gz |
SERVER-40357 expand all calls to MONGO_DISALLOW_COPYING
produced by:
hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )"
for f in "$hits"; do
sed -i.orig '
s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/;
' $f
done
Diffstat (limited to 'src/mongo/shell/bench.h')
-rw-r--r-- | src/mongo/shell/bench.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mongo/shell/bench.h b/src/mongo/shell/bench.h index 37e0a0b90af..7683ad4b089 100644 --- a/src/mongo/shell/bench.h +++ b/src/mongo/shell/bench.h @@ -146,7 +146,8 @@ struct BenchRunOp { * Configuration object describing a bench run activity. */ class BenchRunConfig { - MONGO_DISALLOW_COPYING(BenchRunConfig); + BenchRunConfig(const BenchRunConfig&) = delete; + BenchRunConfig& operator=(const BenchRunConfig&) = delete; public: /** @@ -314,7 +315,8 @@ private: * In all cases, the counter objects must outlive the trace object. */ class BenchRunEventTrace { - MONGO_DISALLOW_COPYING(BenchRunEventTrace); + BenchRunEventTrace(const BenchRunEventTrace&) = delete; + BenchRunEventTrace& operator=(const BenchRunEventTrace&) = delete; public: explicit BenchRunEventTrace(BenchRunEventCounter* eventCounter) { @@ -381,7 +383,8 @@ struct BenchRunStats { * Logically, the states are "starting up", "running" and "finished." */ class BenchRunState { - MONGO_DISALLOW_COPYING(BenchRunState); + BenchRunState(const BenchRunState&) = delete; + BenchRunState& operator=(const BenchRunState&) = delete; public: enum State { BRS_STARTING_UP, BRS_RUNNING, BRS_FINISHED }; @@ -462,7 +465,8 @@ private: * Represents the behavior of one thread working in a bench run activity. */ class BenchRunWorker { - MONGO_DISALLOW_COPYING(BenchRunWorker); + BenchRunWorker(const BenchRunWorker&) = delete; + BenchRunWorker& operator=(const BenchRunWorker&) = delete; public: /** @@ -526,7 +530,8 @@ private: * Object representing a "bench run" activity. */ class BenchRunner { - MONGO_DISALLOW_COPYING(BenchRunner); + BenchRunner(const BenchRunner&) = delete; + BenchRunner& operator=(const BenchRunner&) = delete; public: /** |