提交 222cd9bb 编写于 作者: J Justin Santa Barbara

Don't check if the job exists if we are going to ignore the result

Now that we're lazy loading builds, calling getBuildByNumber is not cheap.
So evaluate the 'ignore' flag before trying to load the build.
上级 a156f1eb
......@@ -438,7 +438,7 @@ public class Fingerprinter extends Recorder implements Serializable, DependecyDe
if (job==null) continue; // project no longer exists
if (job.getParent()==build.getParent())
continue; // we are the parent of the build owner, that is almost like we are the owner
if(job.getBuildByNumber(bp.getNumber())==null && !includeMissing)
if(!includeMissing && job.getBuildByNumber(bp.getNumber())==null)
continue; // build no longer exists
Integer existing = r.get(job);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册