File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff 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 << " \n replication: " ;
264+ ss << " # Cursors: " << ClientCursor::numCursors () << ' \n ' ;
265+ ss << " replication: " ;
271266 if ( *replInfo )
272267 ss << " \n replInfo: " << 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 << " \n master: " << replSettings.master << ' \n ' ;
281275 ss << " slave: " << replSettings.slave << ' \n ' ;
You can’t perform that action at this time.
0 commit comments