Ensure that Document's FieldIterator is not invalidated by read operations

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • QE 2024-07-08
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently FieldIterator stores raw pointers to DocumentStorage cache that can be invalidated just by reading more fields. Which is bad, because nobody expects const operations to invalidate iterators. See SERVER-91339 for more details.

      We need to change it, so reads and cache re-allocations won't invalidate it.

              Assignee:
              Unassigned
              Reporter:
              Ivan Fefer
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: