Couple of changes.
1. Revert a buggy patch.
2. Revert sendIndex if the sync request does not go through.
Replication bug fixes