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

Cache collection 'temp' status on Collection object

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Catalog, Storage
    • None
    • Storage NYC 2019-03-11
    • 3

      We cache things like validators and 'capped' status on the Collection object so we do not need to go all the way to storage and open up a storage transaction every time we want to check the value.

      As far as I know, 'temp' cannot change with 'collMod', but it can with 'renameCollection', and on rollback.

      This is needed for SERVER-38139 to ban temporary collections in transactions without having to consult the storage engine an extra time for every transaction statement.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: