Info
When the OplogSlotReserver reserves oplog slots here, it is not necessarily holding any locks. This could result in illegal usage – it's a requirement to hold a Global IX lock when reserving oplog slots in order to conflict with shutdown and recover to timestamp. We do typically hold locks when the oplog slots are reserved, but the locker is stashed in a SideTransactionBlock here, and the locks can be released before we release the oplog slot, e.g. here. Thus the OplogSlotReserver should acquire its own Global IX lock.
Top User Comments
tess.avitabile commented on Mon, 6 May 2019 13:07:59 +0000:
Assigning to siyuan.zhou, since this will be fixed by the commit for SERVER-40498.