diff options
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_mock.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_mock.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_mock.h b/src/mongo/db/repl/replication_coordinator_mock.h index 38ec9d5a3b6..67f7d2cead8 100644 --- a/src/mongo/db/repl/replication_coordinator_mock.h +++ b/src/mongo/db/repl/replication_coordinator_mock.h @@ -286,9 +286,10 @@ public: /** * Sets the function to generate the return value for calls to awaitReplication(). - * 'opTime' is the optime passed to awaitReplication(). + * 'OperationContext' and 'opTime' are the parameters passed to awaitReplication(). */ - using AwaitReplicationReturnValueFunction = stdx::function<StatusAndDuration(const OpTime&)>; + using AwaitReplicationReturnValueFunction = + stdx::function<StatusAndDuration(OperationContext*, const OpTime&)>; void setAwaitReplicationReturnValueFunction( AwaitReplicationReturnValueFunction returnValueFunction); @@ -324,7 +325,8 @@ private: OpTime _myLastAppliedOpTime; Date_t _myLastAppliedWallTime; ReplSetConfig _getConfigReturnValue; - AwaitReplicationReturnValueFunction _awaitReplicationReturnValueFunction = [](const OpTime&) { + AwaitReplicationReturnValueFunction _awaitReplicationReturnValueFunction = [](OperationContext*, + const OpTime&) { return StatusAndDuration(Status::OK(), Milliseconds(0)); }; bool _alwaysAllowWrites = false; |