SERVER-135757ClosedFixed
Prevent delinquency in $update with set of a deep-array index
Setting a deep array index (for example, $set: \{“a.1500001”: 1}) forces path_support.cpp::maybePadTo to append up to 1.5 million null BSON elements to the array one at a time in a loop without interrupt checks. We can easily remediate this by adding a periodic check inside maybePadTo(). Add periodic check in maybePadTo(). There is already a stage in the [delinquency workload |https://github.com/10gen/dsi/pull/6140/changes#diff-d6d429934912251b7f1c6fffea50a52a2369714f64232bb284c691ee8100