If the undertaking required by the last section be given the party complained of must be discharged. If he do not give it the magistrate must commit him to prison, specifying in the warrant the requirement to give security, the amount thereof, and the omission to give the same.
Okla. Stat. tit. 22, § 46