Modify replica sync process.

Signed-off-by: servanter <fengshang@126.com>