fix return type of synchronized_value operator->

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • ALL
    • Programmability 2026-01-19
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The intent was for synchronized value to have a "deep dive" ->, but it returns raw pointers which prevent that from happening. It should be returning references to pointer-like objects, not pointers to them. Easy fix. Will make synchronized value much easier to use, and match user expectations.

      (noticed in a code review)
      https://github.com/10gen/mongo/pull/47249

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: