summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/master_slave.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2013-02-24 17:30:41 -0500
committerEric Milkie <milkie@10gen.com>2013-03-11 11:15:02 -0400
commite22bdb0b330d5d236c2fa8fb89a98b8f908ccf61 (patch)
tree868bc6213d4133e696782612c7a758335d433d7e /src/mongo/db/repl/master_slave.h
parent3a2a35044db2205cf7f31ceb45436e2dab9f9a6e (diff)
downloadmongo-e22bdb0b330d5d236c2fa8fb89a98b8f908ccf61.tar.gz
SERVER-7772 seperate master/slave code from replica set code
Diffstat (limited to 'src/mongo/db/repl/master_slave.h')
-rw-r--r--src/mongo/db/repl/master_slave.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mongo/db/repl/master_slave.h b/src/mongo/db/repl/master_slave.h
new file mode 100644
index 00000000000..90e30074be7
--- /dev/null
+++ b/src/mongo/db/repl/master_slave.h
@@ -0,0 +1,26 @@
+/**
+* Copyright (C) 2008 10gen 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/>.
+*/
+
+#pragma once
+
+namespace mongo {
+ // Main entry point for master/slave at startup time.
+ void startMasterSlave();
+
+ // Global variable that contains a string telling why master/slave halted
+ extern const char *replAllDead;
+
+}