Fix constraint violation caused by slave ID change.

Bugs closed: AURORA-596

Reviewed at https://reviews.apache.org/r/23832/