diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-07-28 12:33:36 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-07-28 12:33:36 -0400 |
commit | 09c2cacddc1310af91d774c0c8fade8190be3101 (patch) | |
tree | 062f8ec57754b7a4b370f83ccd5e468894f648ad /db/dbwebserver.cpp | |
parent | 3f68693a61090e97076aa35af77ba8049d088d11 (diff) | |
download | mongo-09c2cacddc1310af91d774c0c8fade8190be3101.tar.gz |
move client info out
Diffstat (limited to 'db/dbwebserver.cpp')
-rw-r--r-- | db/dbwebserver.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/db/dbwebserver.cpp b/db/dbwebserver.cpp index 7bd507d10d0..7c32b69891b 100644 --- a/db/dbwebserver.cpp +++ b/db/dbwebserver.cpp @@ -127,15 +127,6 @@ namespace mongo { ss << "</pre>"; } - void tablecell( stringstream& ss , bool b ){ - ss << "<td>" << (b ? "<b>X</b>" : "") << "</td>"; - } - - template< typename T> - void tablecell( stringstream& ss , const T& t ){ - ss << "<td>" << t << "</td>"; - } - void doUnlockedStuff(stringstream& ss) { /* this is in the header already ss << "port: " << port << '\n'; */ ss << mongodVersion() << '\n'; @@ -144,55 +135,6 @@ namespace mongo { ss << "uptime: " << time(0)-started << " seconds\n"; if ( replAllDead ) ss << "<b>replication replAllDead=" << replAllDead << "</b>\n"; - - - ss << "\n<table border=1 cellpadding=2 cellspacing=0>"; - ss << "<tr align='left'>" - << th( a("", "Connections to the database, both internal and external.", "Client") ) - << th( a("http://www.mongodb.org/display/DOCS/Viewing+and+Terminating+Current+Operation", "", "OpId") ) - << "<th>Active</th>" - << "<th>LockType</th>" - << "<th>Waiting</th>" - << "<th>SecsRunning</th>" - << "<th>Op</th>" - << th( a("http://www.mongodb.org/display/DOCS/Developer+FAQ#DeveloperFAQ-What%27sa%22namespace%22%3F", "", "Namespace") ) - << "<th>Query</th>" - << "<th>client</th>" - << "<th>msg</th>" - << "<th>progress</th>" - - << "</tr>\n"; - { - scoped_lock bl(Client::clientsMutex); - for( set<Client*>::iterator i = Client::clients.begin(); i != Client::clients.end(); i++ ) { - Client *c = *i; - CurOp& co = *(c->curop()); - ss << "<tr><td>" << c->desc() << "</td>"; - - tablecell( ss , co.opNum() ); - tablecell( ss , co.active() ); - tablecell( ss , co.getLockType() ); - tablecell( ss , co.isWaitingForLock() ); - if ( co.active() ) - tablecell( ss , co.elapsedSeconds() ); - else - tablecell( ss , "" ); - tablecell( ss , co.getOp() ); - tablecell( ss , co.getNS() ); - if ( co.haveQuery() ) - tablecell( ss , co.query() ); - else - tablecell( ss , "" ); - tablecell( ss , co.getRemoteString() ); - - tablecell( ss , co.getMessage() ); - tablecell( ss , co.getProgressMeter().toString() ); - - - ss << "</tr>\n"; - } - } - ss << "</table>\n"; } private: |