27-18-302. Filing of undertaking -- sheriff's liability. The sheriff shall thereupon file said undertaking with the clerk of the district court out of which said writ of attachment emanates, and such sheriff shall thereupon cease to be liable under said writ, and any and all actions on such undertaking shall be against the obligors named in such undertaking.