Rewrite replica_bootstrap() using coio
Merge remote-tracking branch 'origin/replica-join-coio'