Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1362

Possible to call db.fsyncLock() while profiling is enabled

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • v1.3.9
    • None
    • manual
    • None

    Description

      The db.fsyncLock() docs say:

      Note: The database cannot be locked with db.fsyncLock() while profiling is enabled. You must disable profiling before locking the database with db.fsyncLock(). Disable profiling using db.setProfilingLevel() as follows in the mongo shell...

      I was able to lock a 2.4.1 database while profiling was enabled (mode 2). Issuing queries while locked resulted in no new data entering the system.profile collection, and once the DB was unlocked, profiling continued as expected.

      Attachments

        Activity

          People

            michael.paik Michael Paik
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 27 weeks, 2 days ago