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

Change UUIDCatalog::iterator operator== and _repositionIfNeeded

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.10
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-03-11, Storage NYC 2019-03-25
    • 10
    • 2

      TheĀ _mapIter == _uuidCatalog->_orderedCollections.end() comparison in UUIDCatalog::iterator::operator== fails on Windows DEBUG builds if _mapIter is invalidated. Change the meaning on iterator equality for UUIDCatalog::iterator to prevent this.

      The _repositionIfNeeded method also has a bug: it returns false if _mapIter is now at the end of the map. This should return true because the iterator has actually been repositioned.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: