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

Add user information to the database profile

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.9.1
    • Component/s: Admin
    • Labels:
      None

      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"

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: