Description
When the first phase index write fails, the exception path clears the list of row locks and then removes pending write entires. However, removing pending write entries relies on the list to enumerate the write entires. It should remove pending row entries first then clear the list.