SERVER-138015ClosedFixed

Make wouldRenameSucceed handle empty dst rename

The code doesn't handle empty to empty rename and will drop the first field. An empty dst in wouldRenameSucceed is not possible in the code right now, but this function should be fixed for any potential future changes. Test via unit test

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.