imported replication from iktomi.unstable.db.replication