mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
compile gcc
This commit is contained in:
parent
6545333cb6
commit
4992d8314f
@ -231,10 +231,10 @@ namespace mongo {
|
|||||||
|
|
||||||
/* this is to sort the member rows by their ordinal _id, so they show up in the same
|
/* this is to sort the member rows by their ordinal _id, so they show up in the same
|
||||||
order on all the different web ui's; that is less confusing for the operator. */
|
order on all the different web ui's; that is less confusing for the operator. */
|
||||||
map<int, stringstream> mp;
|
map<int,string> mp;
|
||||||
|
|
||||||
{
|
{
|
||||||
stringstream& s = mp[_self->_id];
|
stringstream s;
|
||||||
/* self row */
|
/* self row */
|
||||||
s << tr() << td(_self->fullName()) <<
|
s << tr() << td(_self->fullName()) <<
|
||||||
td("1") <<
|
td("1") <<
|
||||||
@ -244,15 +244,18 @@ namespace mongo {
|
|||||||
td(stateAsHtml(_myState));
|
td(stateAsHtml(_myState));
|
||||||
s << td( _self->_lastHeartbeatErrMsg.get() );
|
s << td( _self->_lastHeartbeatErrMsg.get() );
|
||||||
s << _tr();
|
s << _tr();
|
||||||
|
mp[_self->_id] = s.str();
|
||||||
}
|
}
|
||||||
Member *m = head();
|
Member *m = head();
|
||||||
while( m ) {
|
while( m ) {
|
||||||
m->summarizeAsHtml(mp[m->_id]);
|
stringstream s;
|
||||||
|
m->summarizeAsHtml(s);
|
||||||
|
mp[m->_id] = s.str();
|
||||||
m = m->next();
|
m = m->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
for( map<int,stringstream>::const_iterator i = mp.begin(); i != mp.end(); i++ )
|
for( map<int,string>::const_iterator i = mp.begin(); i != mp.end(); i++ )
|
||||||
s << i->second.str();
|
s << i->second;
|
||||||
s << _table();
|
s << _table();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user