summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-04-07 19:17:04 -0400
committerMathias Stearn <mathias@10gen.com>2017-04-12 16:00:07 -0400
commit760b1df21159bfee0fdb650288113fa568a1bafc (patch)
tree3980ae627caf095de95ce963eeca61aa7af988a7 /src/mongo/db/repl
parent731790d836e22babbd953c68acbe36cdd97694e8 (diff)
downloadmongo-760b1df21159bfee0fdb650288113fa568a1bafc.tar.gz
SERVER-28701 Remove queryOptions argument from Command::run()
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r--src/mongo/db/repl/master_slave.cpp1
-rw-r--r--src/mongo/db/repl/repl_set_commands.cpp15
-rw-r--r--src/mongo/db/repl/repl_set_request_votes.cpp1
-rw-r--r--src/mongo/db/repl/replication_info.cpp1
-rw-r--r--src/mongo/db/repl/resync.cpp1
5 files changed, 0 insertions, 19 deletions
diff --git a/src/mongo/db/repl/master_slave.cpp b/src/mongo/db/repl/master_slave.cpp
index 2b26ad061c7..1c68848814b 100644
--- a/src/mongo/db/repl/master_slave.cpp
+++ b/src/mongo/db/repl/master_slave.cpp
@@ -387,7 +387,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string& ns,
BSONObj& cmdObj,
- int options,
string& errmsg,
BSONObjBuilder& result) {
HandshakeArgs handshake;
diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp
index 2429351c364..48969d39a3b 100644
--- a/src/mongo/db/repl/repl_set_commands.cpp
+++ b/src/mongo/db/repl/repl_set_commands.cpp
@@ -96,7 +96,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
log() << "replSetTest command received: " << cmdObj.toString();
@@ -165,7 +164,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
@@ -188,7 +186,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
if (cmdObj["forShell"].trueValue())
@@ -230,7 +227,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
@@ -330,7 +326,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
BSONObj configObj;
@@ -405,7 +400,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
@@ -462,7 +456,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
@@ -494,7 +487,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
@@ -560,7 +552,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
@@ -589,7 +580,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
@@ -618,7 +608,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
auto replCoord = repl::ReplicationCoordinator::get(opCtx->getClient()->getServiceContext());
@@ -718,7 +707,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
MONGO_FAIL_POINT_BLOCK(rsDelayHeartbeatResponse, delay) {
@@ -805,7 +793,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
@@ -838,7 +825,6 @@ private:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
DEV log() << "received elect msg " << cmdObj.toString();
@@ -872,7 +858,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
diff --git a/src/mongo/db/repl/repl_set_request_votes.cpp b/src/mongo/db/repl/repl_set_request_votes.cpp
index 5577952807d..7c9ad65950b 100644
--- a/src/mongo/db/repl/repl_set_request_votes.cpp
+++ b/src/mongo/db/repl/repl_set_request_votes.cpp
@@ -50,7 +50,6 @@ private:
bool run(OperationContext* opCtx,
const std::string&,
BSONObj& cmdObj,
- int,
std::string& errmsg,
BSONObjBuilder& result) final {
Status status = getGlobalReplicationCoordinator()->checkReplEnabledForCommand(&result);
diff --git a/src/mongo/db/repl/replication_info.cpp b/src/mongo/db/repl/replication_info.cpp
index 28bc80d04c8..84eed6ba699 100644
--- a/src/mongo/db/repl/replication_info.cpp
+++ b/src/mongo/db/repl/replication_info.cpp
@@ -228,7 +228,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string&,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
/* currently request to arbiter is (somewhat arbitrarily) an ismaster request that is not
diff --git a/src/mongo/db/repl/resync.cpp b/src/mongo/db/repl/resync.cpp
index 67b230af0af..d95ff87cc0f 100644
--- a/src/mongo/db/repl/resync.cpp
+++ b/src/mongo/db/repl/resync.cpp
@@ -75,7 +75,6 @@ public:
virtual bool run(OperationContext* opCtx,
const string& dbname,
BSONObj& cmdObj,
- int,
string& errmsg,
BSONObjBuilder& result) {
bool waitForResync = !cmdObj.hasField(kWaitFieldName) || cmdObj[kWaitFieldName].trueValue();