summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-10-02 11:19:26 -0400
committerDavid Storch <david.storch@10gen.com>2015-10-07 15:44:58 -0400
commit2904bb4a308e8056ccacb562a662c9353e35c73a (patch)
tree2b2d6d96093fdf78bb0cb7cb6bf693f20c3367b1
parentec97a61067e2dc3f9c4e58a9d66b5e1f2600f978 (diff)
downloadmongo-2904bb4a308e8056ccacb562a662c9353e35c73a.tar.gz
SERVER-20708 make getMore and killCursors commands ignore the slaveOk bit
These commands will now succeed on secondaries even if slaveOk=0.
-rw-r--r--src/mongo/db/commands/getmore_cmd.cpp4
-rw-r--r--src/mongo/db/commands/killcursors_common.h4
-rw-r--r--src/mongo/s/commands/cluster_getmore_cmd.cpp4
3 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/db/commands/getmore_cmd.cpp b/src/mongo/db/commands/getmore_cmd.cpp
index b349093e212..aa593cf86d1 100644
--- a/src/mongo/db/commands/getmore_cmd.cpp
+++ b/src/mongo/db/commands/getmore_cmd.cpp
@@ -83,10 +83,6 @@ public:
}
bool slaveOk() const override {
- return false;
- }
-
- bool slaveOverrideOk() const override {
return true;
}
diff --git a/src/mongo/db/commands/killcursors_common.h b/src/mongo/db/commands/killcursors_common.h
index f8d0ed4fd44..7e7d854ea93 100644
--- a/src/mongo/db/commands/killcursors_common.h
+++ b/src/mongo/db/commands/killcursors_common.h
@@ -46,10 +46,6 @@ public:
}
bool slaveOk() const final {
- return false;
- }
-
- bool slaveOverrideOk() const final {
return true;
}
diff --git a/src/mongo/s/commands/cluster_getmore_cmd.cpp b/src/mongo/s/commands/cluster_getmore_cmd.cpp
index b630d4c81d4..05248bba6e1 100644
--- a/src/mongo/s/commands/cluster_getmore_cmd.cpp
+++ b/src/mongo/s/commands/cluster_getmore_cmd.cpp
@@ -55,10 +55,6 @@ public:
}
bool slaveOk() const final {
- return false;
- }
-
- bool slaveOverrideOk() const final {
return true;
}