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

User Cache should not invalidate empty weak_ptrs

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.3
    • None
    • Security
    • None
    • Fully Compatible
    • ALL
    • Platforms 2018-08-27
    • 12

    Description

      During invalidateIf, the cache will lock a weak_ptr and later attempt to invalidate it. https://github.com/mongodb/mongo/blob/b079e4713d897b5541c2804386025817ec720800/src/mongo/util/invalidating_lru_cache.h#L124

       

      We should make sure that the lock happened successfully, before attempting further processing.

      Attachments

        Activity

          People

            jonathan.reams@mongodb.com Jonathan Reams
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: