A writ of capias ad respondendum is served by arresting the defendant, but the defendant shall be discharged upon giving sufficient bail.