initiation of replication connections for version 10 and up, taken from proposed upstream commit e285e159.