N-way multimaster replication problem