0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

auth context if necessary SERVER-1899

This commit is contained in:
Kristina 2011-01-13 14:47:06 -05:00
parent a4c04f51cb
commit 71f257f2c5

View File

@ -313,7 +313,7 @@ namespace mongo {
BSONObjBuilder sources( result.subarrayStart( "sources" ) );
readlock lk( "local.sources" );
Client::Context ctx( "local.sources" );
Client::Context ctx( "local.sources", dbpath, 0, authed );
shared_ptr<Cursor> c = findTableScan("local.sources", BSONObj());
int n = 0;
while ( c->ok() ) {