Skip to content

Commit 182cd99

Browse files
committed
tweak web admin page
1 parent 422ad22 commit 182cd99

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

db/restapi.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ namespace mongo {
8585

8686
bool html = false;
8787

88-
8988
stringstream ss;
9089

9190
if ( method == "GET" ) {
@@ -254,28 +253,23 @@ namespace mongo {
254253

255254
class LowLevelMongodStatus : public WebStatusPlugin {
256255
public:
257-
LowLevelMongodStatus() : WebStatusPlugin( "low level" , 5 , "requires read lock" ) {}
256+
LowLevelMongodStatus() : WebStatusPlugin( "overview" , 5 , "(only reported if can acquire read lock quickly)" ) {}
258257

259258
virtual void init() {}
260259

261260
void _gotLock( int millis , stringstream& ss ) {
262261
ss << "<pre>\n";
263262
ss << "time to get readlock: " << millis << "ms\n";
264-
265263
ss << "# databases: " << dbHolder.size() << '\n';
266-
267-
if( ClientCursor::numCursors()>500 )
268-
ss << "# Cursors: " << ClientCursor::numCursors() << '\n';
269-
270-
ss << "\nreplication: ";
264+
ss << "# Cursors: " << ClientCursor::numCursors() << '\n';
265+
ss << "replication: ";
271266
if( *replInfo )
272267
ss << "\nreplInfo: " << replInfo << "\n\n";
273268
if( replSet ) {
274-
ss << a("", "see replSetGetStatus link top of page") << "--replSet </a>" << cmdLine._replSet << '\n';
269+
ss << a("", "see replSetGetStatus link top of page") << "--replSet </a>" << cmdLine._replSet;
275270
}
276271
if ( replAllDead )
277-
ss << "<b>replication replAllDead=" << replAllDead << "</b>\n";
278-
272+
ss << "\n<b>replication replAllDead=" << replAllDead << "</b>\n";
279273
else {
280274
ss << "\nmaster: " << replSettings.master << '\n';
281275
ss << "slave: " << replSettings.slave << '\n';

0 commit comments

Comments
 (0)