SERVER-138779In Code Review

Give NoLimitSorter two swapping buffers for incremental spilling

Incremental spilling needs a buffer that keeps receiving keys while another buffer's sorted keys are written out at the collection scan's rate. {{NoLimitSorter}} keeps one buffer and writes everything at once when it exceeds {{maxMemoryUsageBytes}}. This gives {{NoLimitSorter}} two buffers that trade roles, each holding its unspilled entries and the pool its keys are allocated from; {{memPool()}} returns the filling buffer's pool, and memory accounting covers both. This is the structure only: n

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.