From 2904bb4a308e8056ccacb562a662c9353e35c73a Mon Sep 17 00:00:00 2001 From: David Storch Date: Fri, 2 Oct 2015 11:19:26 -0400 Subject: SERVER-20708 make getMore and killCursors commands ignore the slaveOk bit These commands will now succeed on secondaries even if slaveOk=0. --- src/mongo/db/commands/getmore_cmd.cpp | 4 ---- src/mongo/db/commands/killcursors_common.h | 4 ---- src/mongo/s/commands/cluster_getmore_cmd.cpp | 4 ---- 3 files changed, 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; } -- cgit v1.2.1