Add replica id to operation