diff options
author | Randolph Tan <randolph@10gen.com> | 2015-08-07 15:15:18 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2015-08-11 12:08:52 -0400 |
commit | 248aea0dad9f9a3d46cb37547a546b0c9fe7e135 (patch) | |
tree | 1ff09899731c586f52ab1b20bbf044e7ecab5b20 /src/mongo/executor/network_test_env.h | |
parent | 8117ecc138e9f87ade5a475a2695d1e39f474d8c (diff) | |
download | mongo-248aea0dad9f9a3d46cb37547a546b0c9fe7e135.tar.gz |
SERVER-19390 Make config server queries do read committed
Diffstat (limited to 'src/mongo/executor/network_test_env.h')
-rw-r--r-- | src/mongo/executor/network_test_env.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <tuple> #include <type_traits> #include <vector> @@ -135,6 +136,11 @@ public: using OnFindCommandFunction = stdx::function<StatusWith<std::vector<BSONObj>>(const RemoteCommandRequest&)>; + // Function that accepts a find request and returns a tuple of resulting documents and response + // metadata. + using OnFindCommandWithMetadataFunction = + stdx::function<StatusWith<std::tuple<std::vector<BSONObj>, 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. |