
The master reference used by the readwritesplit sessions needs to be reassigned if slave reconnection occurs. This happens because the reference refers to a certain place in the backend reference array instead of the actual backend reference and those places are mixed when the array is sorted.