From d75cb425fbc3cf4b569eb1722c3f8abec45654a2 Mon Sep 17 00:00:00 2001 From: Judah Schvimer Date: Wed, 31 Jan 2018 14:30:51 -0500 Subject: Revert "SERVER-32958 slaveOk,slaveOverrideOk replacement" This reverts commit be24b0323d3f2d424d9e22337f4221d39001ac31. --- src/mongo/db/commands/isself.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/commands/isself.cpp') diff --git a/src/mongo/db/commands/isself.cpp b/src/mongo/db/commands/isself.cpp index e3c7d077aae..841dfde9e54 100644 --- a/src/mongo/db/commands/isself.cpp +++ b/src/mongo/db/commands/isself.cpp @@ -42,8 +42,8 @@ using std::stringstream; class IsSelfCommand : public BasicCommand { public: IsSelfCommand() : BasicCommand("_isSelf") {} - AllowedOnSecondary secondaryAllowed() const override { - return AllowedOnSecondary::kAlways; + virtual bool slaveOk() const { + return true; } virtual bool supportsWriteConcern(const BSONObj& cmd) const override { return false; -- cgit v1.2.1