SERVER-136551ClosedFixed

Make quotas set on $out stage take into account size of existing collection

SERVER-97833 adds quotas to $out aggregation stages.  This will cause it to throw if the data written exceeds the quota size.  This ticket is to take into account the size of the existing collection so that it only throws if the increase in size exceeds the quota.  In other words, the effective quota should be the passed in quota plus the size of the collection being replaced.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.