transaction replication logics