SERVER-133797ClosedFixed

Fix index build metric object lifetime bug

Fixes an issue relating to the lifetime of variables used to track the number of bytes inserted/deleted from indexes as part of an index build's drain writes phase. This issue was recently caught with an ASAN failure.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.0.9
Components
Server components related to this issue
Build
Labels
Tags and classification
bkp