summaryrefslogtreecommitdiff
path: root/src/mongo/db/restapi.cpp
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2014-05-19 13:28:28 -0400
committermatt dannenberg <matt.dannenberg@10gen.com>2014-05-22 12:18:42 -0400
commit3cb9955b05bdef78cb8f72f63e657d920c0fa0bb (patch)
tree7768ef10ba9b219e22a04905ffa090d56ed1592d /src/mongo/db/restapi.cpp
parent0d088b82f1490aa7053fdf2748a55162b30970c4 (diff)
downloadmongo-3cb9955b05bdef78cb8f72f63e657d920c0fa0bb.tar.gz
SERVER-14021 move all replication code into namespace replset
Diffstat (limited to 'src/mongo/db/restapi.cpp')
-rw-r--r--src/mongo/db/restapi.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mongo/db/restapi.cpp b/src/mongo/db/restapi.cpp
index 4ddf39ff3e2..ea03837d429 100644
--- a/src/mongo/db/restapi.cpp
+++ b/src/mongo/db/restapi.cpp
@@ -50,7 +50,6 @@
namespace mongo {
- extern const char *replInfo;
bool getInitialSyncCompleted();
using namespace bson;
@@ -278,16 +277,17 @@ namespace mongo {
ss << "# databases: " << dbHolder().sizeInfo() << '\n';
ss << "# Cursors: " << ClientCursor::totalOpen() << '\n';
ss << "replication: ";
- if( *replInfo )
- ss << "\nreplInfo: " << replInfo << "\n\n";
- if( replSet ) {
- ss << a("", "see replSetGetStatus link top of page") << "--replSet </a>" << replSettings.replSet;
+ if (*replset::replInfo)
+ ss << "\nreplInfo: " << replset::replInfo << "\n\n";
+ if (replset::replSet) {
+ ss << a("", "see replSetGetStatus link top of page") << "--replSet </a>"
+ << replset::replSettings.replSet;
}
- if ( replAllDead )
- ss << "\n<b>replication replAllDead=" << replAllDead << "</b>\n";
+ if (replset::replAllDead)
+ ss << "\n<b>replication replAllDead=" << replset::replAllDead << "</b>\n";
else {
- ss << "\nmaster: " << replSettings.master << '\n';
- ss << "slave: " << replSettings.slave << '\n';
+ ss << "\nmaster: " << replset::replSettings.master << '\n';
+ ss << "slave: " << replset::replSettings.slave << '\n';
ss << '\n';
}