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

Conflicting documentation on eval nolock option

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • v1.3.8
    • Affects Version/s: None
    • Component/s: manual
    • Labels:

      Taken from FAQ: Concurrency
      Write lock. If used with the nolock lock option, the eval option does not take a write lock and cannot write data to the database.

      Taken from eval
      By default, eval takes a global write lock before evaluating the JavaScript function. As a result, eval blocks all other read and write operations to the database while the eval operation runs. Set nolock to true on the eval command to prevent the eval command from taking the global write lock before evaluating the JavaScript. nolock does not impact whether operations within the JavaScript code itself takes a write lock.

      These two doc's pages conflict each other regarding writes performed when the nolock option is specified. Can we please fix this up and ideally clarify the use-cases for using the lock vs nolock as this will help end-users understand the what/why of supplying the nolock option.

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 39 weeks, 6 days ago