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

MonoBlock constructor copies value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • v8.0
    • 200

      MonoBlock constructor copies the value that is given to it on the constructor So, inside map the result value is discarded without being released causing memory leak.

      HeterogeneousBlock takes the ownership of the data passed to it through the constructor The same is true for HomogeneousBlock

       

      There is no reason MonoBlock should behave differently than the other Blocks. Its constructor should be updated to use the data passed to it instead of creating a copy.

            Assignee:
            foteini.alvanaki@mongodb.com Foteini Alvanaki
            Reporter:
            foteini.alvanaki@mongodb.com Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: