summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2014-11-24 11:26:19 -0500
committerDavid Storch <david.storch@10gen.com>2014-11-24 11:52:08 -0500
commit22871dbd76bfab1a7cb8d63d944f8f2c449e26a2 (patch)
treea28bbceb7f297967d08f2639429aa3a049b756e7 /src/mongo/s/commands
parent35079a95ebc591dee47ecca5e0f22eb7a7381fd0 (diff)
downloadmongo-22871dbd76bfab1a7cb8d63d944f8f2c449e26a2.tar.gz
SERVER-16291 allow index filters commands to run on secondaries if slaveOk explicitly set to true
Diffstat (limited to 'src/mongo/s/commands')
-rw-r--r--src/mongo/s/commands/cluster_index_filter_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_index_filter_cmd.cpp b/src/mongo/s/commands/cluster_index_filter_cmd.cpp
index 10855e96aaa..c454e2bc385 100644
--- a/src/mongo/s/commands/cluster_index_filter_cmd.cpp
+++ b/src/mongo/s/commands/cluster_index_filter_cmd.cpp
@@ -58,6 +58,10 @@ namespace mongo {
return false;
}
+ bool slaveOverrideOk() const {
+ return true;
+ }
+
virtual bool isWriteCommandForConfigServer() const { return false; }
void help(stringstream& ss) const {