Any mariner, boatman, or other person employed in the service of the vessel attached, who may wish to assert his or her claim for wages against the vessel, the attachments being issued for other demands than those wages, may file an affidavit of his or her claim, setting forth the amount and the particular service rendered, with the clerk of the court; and thereafter no attachment can be discharged upon filing an undertaking, unless the amount of the claim, or the amount determined as provided in Section 496, is covered thereby, in addition to the other requirements; and any execution issued against that vessel, upon judgment recovered thereafter shall direct the application of the proceeds of any sale:
Ca. Harb. and Nav. Code § 495.9