Cal. Penal Code § 991
(d) If, after examining these documents, the court determines that there exists probable cause to believe that the defendant has committed the offense charged in the complaint, it shall set the matter for trial.
If the court determines that no such probable cause exists, it shall dismiss the complaint and discharge the defendant.
(e) Within 15 days of the dismissal of a complaint pursuant to this section the prosecution may refile the complaint.
A second dismissal pursuant to this section is a bar to any other prosecution for the same offense.