summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/reporter_test.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2017-12-06 14:40:59 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2017-12-14 17:50:41 -0500
commit950fa6e6fd8f46248796dea3bc6c2392757b163d (patch)
tree2556f9322ee634477fc54b6876653b8ea702b8fa /src/mongo/db/repl/reporter_test.cpp
parentd2eedbeeedb61753c17b6a87912e4b14e7611b95 (diff)
downloadmongo-950fa6e6fd8f46248796dea3bc6c2392757b163d.tar.gz
SERVER-32070 migrate some easy stdx::bind to lambdas (pt3)
Diffstat (limited to 'src/mongo/db/repl/reporter_test.cpp')
-rw-r--r--src/mongo/db/repl/reporter_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repl/reporter_test.cpp b/src/mongo/db/repl/reporter_test.cpp
index aec94c02387..a827e1dec7c 100644
--- a/src/mongo/db/repl/reporter_test.cpp
+++ b/src/mongo/db/repl/reporter_test.cpp
@@ -146,8 +146,9 @@ void ReporterTest::setUp() {
posUpdater = stdx::make_unique<MockProgressManager>();
posUpdater->updateMap(0, OpTime({3, 0}, 1), OpTime({3, 0}, 1));
- prepareReplSetUpdatePositionCommandFn =
- stdx::bind(&MockProgressManager::prepareReplSetUpdatePositionCommand, posUpdater.get());
+ prepareReplSetUpdatePositionCommandFn = [updater = posUpdater.get()] {
+ return updater->prepareReplSetUpdatePositionCommand();
+ };
reporter =
stdx::make_unique<Reporter>(_executorProxy.get(),