Implement the fixes for resharding for vertical splits.

@enisoc 

See the doc for more info.