summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_client_cursor.h
diff options
context:
space:
mode:
authorXueruiFa <xuerui.fa@mongodb.com>2020-07-16 18:03:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-29 15:23:07 +0000
commit7b910aba3c500839692d142b4c64560b1fc2f29b (patch)
treef56189478f203aac17cbe9d10bf91b1969653155 /src/mongo/s/query/cluster_client_cursor.h
parent4b880132b11c16a4a0cba4e5c3ce77892dd01f7c (diff)
downloadmongo-7b910aba3c500839692d142b4c64560b1fc2f29b.tar.gz
SERVER-49376: Ensure cursors inherit API settings of the initiating command
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor.h')
-rw-r--r--src/mongo/s/query/cluster_client_cursor.h6
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 6dc1ae8419e..44aae05e34d 100644
--- a/src/mongo/s/query/cluster_client_cursor.h
+++ b/src/mongo/s/query/cluster_client_cursor.h
@@ -33,6 +33,7 @@
#include "mongo/client/read_preference.h"
#include "mongo/db/auth/user_name.h"
+#include "mongo/db/initialize_api_parameters.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/logical_session_id.h"
#include "mongo/s/query/cluster_client_cursor_params.h"
@@ -176,6 +177,11 @@ public:
virtual boost::optional<TxnNumber> getTxnNumber() const = 0;
/**
+ * Returns the APIParameters for this cursor.
+ */
+ virtual APIParameters getAPIParameters() const = 0;
+
+ /**
* Returns the readPreference for this cursor.
*/
virtual boost::optional<ReadPreferenceSetting> getReadPreference() const = 0;