Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2537

createCollection helper should not run listIndexes outside of strict mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: Not Applicable
    • Fix Version/s: 3.6.0
    • Component/s: None
    • Labels:
      None
    • MongoDB Version:
      Not Applicable

      Description

      Our createCollections helper has a concept of a "strict" mode, where the collection name is checked before attempting the create in order to prevent duplicate creation. The current implementation of the helper always runs a listCollections and returns a cached version of the collection if it already exists, even if the options for the operation are different.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matt.broadstone Matt Broadstone
              Reporter:
              matt.broadstone Matt Broadstone
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: