A deposit of the sum of money mentioned in the order admitting to bail is equivalent to bail and upon such deposit the defendant must be discharged from custody.
R.L.1910, § 6108.