If on a warrant issued under Section 813 or 817 the defendant is brought before a magistrate other than the one who issued the warrant, the complaint on which the warrant was issued must be sent to that magistrate, or if it cannot be procured, a new complaint may be filed before that magistrate.
Ca. Pen. Code § 826