From 248aea0dad9f9a3d46cb37547a546b0c9fe7e135 Mon Sep 17 00:00:00 2001 From: Randolph Tan Date: Fri, 7 Aug 2015 15:15:18 -0400 Subject: SERVER-19390 Make config server queries do read committed --- src/mongo/executor/network_test_env.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mongo/executor/network_test_env.h') diff --git a/src/mongo/executor/network_test_env.h b/src/mongo/executor/network_test_env.h index 6ef0f242597..717fbb642ea 100644 --- a/src/mongo/executor/network_test_env.h +++ b/src/mongo/executor/network_test_env.h @@ -28,6 +28,7 @@ #pragma once +#include #include #include @@ -135,6 +136,11 @@ public: using OnFindCommandFunction = stdx::function>(const RemoteCommandRequest&)>; + // Function that accepts a find request and returns a tuple of resulting documents and response + // metadata. + using OnFindCommandWithMetadataFunction = + stdx::function, BSONObj>>( + const RemoteCommandRequest&)>; /** * Create a new environment based on the given network. @@ -149,6 +155,7 @@ public: void onCommand(OnCommandFunction func); void onCommandWithMetadata(OnCommandWithMetadataFunction func); void onFindCommand(OnFindCommandFunction func); + void onFindWithMetadataCommand(OnFindCommandWithMetadataFunction func); private: // Task executor used for running asynchronous operations. -- cgit v1.2.1