On taking bail, the magistrate must certify that fact on the warrant, and deliver the warrant and undertaking of bail to the officer having charge of the defendant. The officer must then discharge the defendant from arrest, and must, without delay, deliver the warrant and undertaking to the clerk of the court at which the defendant is required to appear.
Okla. Stat. tit. 22, § 178