Add user information to the database profile

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.9.1
    • Affects Version/s: 1.8.1
    • Component/s: Admin
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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"

              Assignee:
              Eliot Horowitz (Inactive)
              Reporter:
              Alvin Richards (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: