Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3201

Add user information to the database profile

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.1
    • Affects Version/s: 1.8.1
    • Component/s: Admin
    • 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 Eliot Horowitz (Inactive)
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: