소스 검색

Merge "Fix DeltaTask infinite loop"

tags/v3.5.0.201409071800-rc1
Robin Rosenberg 10 년 전
부모
커밋
4dc3ba4327
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaTask.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaTask.java 파일 보기

@@ -121,7 +121,7 @@ final class DeltaTask implements Callable<Object> {
ArrayList<WeightedPath> topPaths = computeTopPaths();
Iterator<WeightedPath> topPathItr = topPaths.iterator();
int nextTop = 0;
long weightPerThread = totalWeight / threads;
long weightPerThread = Math.max(totalWeight / threads, 1);
for (int i = beginIndex; i < endIndex;) {
DeltaTask task = new DeltaTask(this);
long w = 0;

Loading…
취소
저장