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

Avoid data race when calculating getApproximateSize of DocumentStorage::kEmptyDoc

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QE 2023-06-12, QE 2023-06-26
    • 135

      As kEmptyDoc is a global constant, several thread can end up calling getApproximateSize() on it causing a mostly harmless, but data race, that is triggering thread sanitizers.

      Ideally, we can initialize it once during creating to avoid it

            Assignee:
            ivan.fefer@mongodb.com Ivan Fefer
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: