summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/index_filter_commands.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-01-30 19:40:46 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2018-01-31 14:04:35 -0500
commitbe24b0323d3f2d424d9e22337f4221d39001ac31 (patch)
tree98577c05a24da852ec518699c4d039da5bbd7329 /src/mongo/db/commands/index_filter_commands.cpp
parent0322da76ec976d240191b1ca8f70c2c732f9753a (diff)
downloadmongo-be24b0323d3f2d424d9e22337f4221d39001ac31.tar.gz
SERVER-32958 slaveOk,slaveOverrideOk replacement
declare read_preference dep. update service_entry_opint_embedded
Diffstat (limited to 'src/mongo/db/commands/index_filter_commands.cpp')
-rw-r--r--src/mongo/db/commands/index_filter_commands.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/db/commands/index_filter_commands.cpp b/src/mongo/db/commands/index_filter_commands.cpp
index 1eaeadcd656..5bbae6c6de0 100644
--- a/src/mongo/db/commands/index_filter_commands.cpp
+++ b/src/mongo/db/commands/index_filter_commands.cpp
@@ -129,12 +129,8 @@ bool IndexFilterCommand::supportsWriteConcern(const BSONObj& cmd) const {
return false;
}
-bool IndexFilterCommand::slaveOk() const {
- return false;
-}
-
-bool IndexFilterCommand::slaveOverrideOk() const {
- return true;
+Command::AllowedOnSecondary IndexFilterCommand::secondaryAllowed() const {
+ return AllowedOnSecondary::kOptIn;
}
std::string IndexFilterCommand::help() const {