summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/check_quorum_for_config_change.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2014-08-05 13:57:42 -0400
committerEric Milkie <milkie@10gen.com>2014-08-05 13:57:42 -0400
commit9b0b7f0eeb9eec34b3d6ba48c3a7ccf7d6f32503 (patch)
tree3b6ab27f218892ae14457a918c451e918500c5be /src/mongo/db/repl/check_quorum_for_config_change.h
parent602639ffa6d8fbbbcfa6cfec4ff2a5a37158d88f (diff)
downloadmongo-9b0b7f0eeb9eec34b3d6ba48c3a7ccf7d6f32503.tar.gz
Revert "SERVER-14626 Implement quorum check functionality for use in replcia set initiate and reconfig."
This reverts commit 50789ae076281da32412ef6bdf3145fc4b070f16. Unit test is sometimes failing due to an unhandled signal.
Diffstat (limited to 'src/mongo/db/repl/check_quorum_for_config_change.h')
-rw-r--r--src/mongo/db/repl/check_quorum_for_config_change.h77
1 files changed, 0 insertions, 77 deletions
diff --git a/src/mongo/db/repl/check_quorum_for_config_change.h b/src/mongo/db/repl/check_quorum_for_config_change.h
deleted file mode 100644
index be824d3bf98..00000000000
--- a/src/mongo/db/repl/check_quorum_for_config_change.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * Copyright (C) 2014 MongoDB Inc.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- * As a special exception, the copyright holders give permission to link the
- * code of portions of this program with the OpenSSL library under certain
- * conditions as described in each individual source file and distribute
- * linked combinations including the program with the OpenSSL library. You
- * must comply with the GNU Affero General Public License in all respects for
- * all of the code used other than as permitted herein. If you modify file(s)
- * with this exception, you may extend this exception to your version of the
- * file(s), but you are not obligated to do so. If you do not wish to do so,
- * delete this exception statement from your version. If you delete this
- * exception statement from all source files in the program, then also delete
- * it in the license file.
- */
-
-#pragma once
-
-namespace mongo {
-
- class Status;
-
-namespace repl {
-
- class ReplicaSetConfig;
- class ReplicationExecutor;
-
- /**
- * Performs a quorum call to determine if a sufficient number of nodes are up
- * to initiate a replica set with configuration "rsConfig".
- *
- * "myIndex" is the index of this node's member configuration in "rsConfig".
- * "executor" is the event loop in which to schedule network/aysnchronous processing.
- *
- * For purposes of initiate, a quorum is only met if all of the following conditions
- * are met:
- * - All nodes respond.
- * - No nodes other than the node running the quorum check have data.
- * - No nodes are already joined to a replica set.
- * - No node reports a replica set name other than the one in "rsConfig".
- */
- Status checkQuorumForInitiate(ReplicationExecutor* executor,
- const ReplicaSetConfig& rsConfig,
- const int myIndex);
-
- /**
- * Performs a quorum call to determine if a sufficient number of nodes are up
- * to replace the current replica set configuration with "rsConfig".
- *
- * "myIndex" is the index of this node's member configuration in "rsConfig".
- * "executor" is the event loop in which to schedule network/aysnchronous processing.
- *
- * For purposes of reconfig, a quorum is only met if all of the following conditions
- * are met:
- * - A majority of voting nodes respond.
- * - At least one electable node responds.
- * - No responding node reports a replica set name other than the one in "rsConfig".
- * - All responding nodes report a config version less than the one in "rsConfig".
- */
- Status checkQuorumForReconfig(ReplicationExecutor* executor,
- const ReplicaSetConfig& rsConfig,
- const int myIndex);
-
-} // namespace repl
-} // namespace mongo