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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • v1.3.9
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved:
              9 years, 37 weeks, 3 days ago