The change from
SERVER-37313 made me realize we don't have test coverage for createIndexes inside nested applyOps. A nested applyOps is interesting because it may take the Global X lock twice. Later codepath should pay attention to this special case because certain things (such as TempRelease) would not work with recursive lock.
- is related to
SERVER-37313 FTDC collection blocked during foreground index build on secondary