summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/master_slave.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/master_slave.h')
-rw-r--r--src/mongo/db/repl/master_slave.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/mongo/db/repl/master_slave.h b/src/mongo/db/repl/master_slave.h
index 740a767cc4e..37adf66963a 100644
--- a/src/mongo/db/repl/master_slave.h
+++ b/src/mongo/db/repl/master_slave.h
@@ -40,10 +40,15 @@
*/
namespace mongo {
+ namespace threadpool {
+ class ThreadPool;
+ }
class Database;
class OperationContext;
+namespace replset {
+
// Main entry point for master/slave at startup time.
void startMasterSlave();
@@ -54,16 +59,14 @@ namespace mongo {
// Global variable that contains a std::string telling why master/slave halted
extern const char *replAllDead;
+ extern const char *replInfo;
+
/* A replication exception */
class SyncException : public DBException {
public:
SyncException() : DBException( "sync exception" , 10001 ) {}
};
- namespace threadpool {
- class ThreadPool;
- }
-
/* A Source is a source from which we can pull (replicate) data.
stored in collection local.sources.
@@ -182,4 +185,5 @@ namespace mongo {
std::map< std::string, OpTime > _ignores;
};
-}
+} // namespace replset
+} // namespace mongo