Skip to content

Commit

Permalink
"mem" has same permissions as other fields SERVER-2415
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Jan 27, 2011
1 parent c3de5e8 commit 4eb5359
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/dbcommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ namespace mongo {
}
timeBuilder.appendNumber( "after basic" , Listener::getElapsedTimeMillis() - start );

if ( authed ) {
{

BSONObjBuilder t( result.subobjStart( "mem" ) );

Expand All @@ -400,7 +400,7 @@ namespace mongo {
t.done();

}
timeBuilder.appendNumber( "after is authed" , Listener::getElapsedTimeMillis() - start );
timeBuilder.appendNumber( "after mem" , Listener::getElapsedTimeMillis() - start );

{
BSONObjBuilder bb( result.subobjStart( "connections" ) );
Expand All @@ -410,7 +410,7 @@ namespace mongo {
}
timeBuilder.appendNumber( "after connections" , Listener::getElapsedTimeMillis() - start );

if ( authed ) {
{
BSONObjBuilder bb( result.subobjStart( "extra_info" ) );
bb.append("note", "fields vary by platform");
ProcessInfo p;
Expand Down

0 comments on commit 4eb5359

Please sign in to comment.