diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-11-07 16:58:37 +0000 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-11-17 17:20:45 -0500 |
commit | f7122973bd8001bb8dd393b7ad7851493b8b7743 (patch) | |
tree | 13614d9c57256c1b374e45d5a2a676ac518813a5 /src/mongo/s/query/cluster_client_cursor.h | |
parent | a40d277a1c7a735e4d7ed5cf394e23181f8620fb (diff) | |
download | mongo-f7122973bd8001bb8dd393b7ad7851493b8b7743.tar.gz |
SERVER-31665 Use correct read concern/preference during update lookup
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor.h')
-rw-r--r-- | src/mongo/s/query/cluster_client_cursor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor.h b/src/mongo/s/query/cluster_client_cursor.h index a263a77f56e..742d294f107 100644 --- a/src/mongo/s/query/cluster_client_cursor.h +++ b/src/mongo/s/query/cluster_client_cursor.h @@ -30,6 +30,7 @@ #include <boost/optional.hpp> +#include "mongo/client/read_preference.h" #include "mongo/db/auth/user_name.h" #include "mongo/db/jsobj.h" #include "mongo/db/logical_session_id.h" @@ -137,6 +138,11 @@ public: * Returns the logical session id for this cursor. */ virtual boost::optional<LogicalSessionId> getLsid() const = 0; + + /** + * Returns the readPreference for this cursor. + */ + virtual boost::optional<ReadPreferenceSetting> getReadPreference() const = 0; }; } // namespace mongo |