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:
parent
a4c04f51cb
commit
71f257f2c5
@ -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() ) {
|
||||
|
Loading…
Reference in New Issue
Block a user