239240241242243244245246247248249
} paths.add(p); } cdb.update(od.getCrawlDb(), paths.toArray(new Path[paths.size()]), true, true); } else { Path[] allSegments = getSegments(od);
247248249250251252253254255256257
else { Path[] allSegments = getSegments(od); // This just does the last segment created. cdb.update(od.getCrawlDb(), new Path[] {allSegments[allSegments.length - 1]}, true, true); } } protected Path [] getSegments(final OutputDirectories od)