[SERVER-3201] Add user information to the database profile Created: 05/Jun/11  Updated: 12/Jul/16  Resolved: 05/Jun/11

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 1.8.1
Fix Version/s: 1.9.1

Type: Improvement Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:

 Description   

Problem:
The system.profile collection contains information about slow operations. This needs to be extended to include the username that the connection authorized with via the db.auth() command.

Use Case:
> use test
> db.setProfilingLevel(2);
> db.auth("thetest","xxx")
> db.foo.save(

{x:1}

);
> db.foo.find();
> db.system.profile.find(

{user:"thetest"}

)

This final command show just the commands executed by the user "thetest"


Generated at Thu Feb 08 03:02:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.