CCP 334     

Art. 334.  Neglect, failure, or refusal of sheriff, deputy sheriff, or employee to perform duty subjects him to punishment for contempt

The neglect, failure, or refusal of a sheriff, deputy sheriff, or other employee of a sheriff to perform any ministerial duty subjects him to punishment for contempt of court.