소스 검색

Merge pull request #380 from ghalliday/issue378

FIX gh-378 Exit cache loop early (common case)

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 년 전
부모
커밋
ad4de1debd
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      system/jlib/jfile.cpp

+ 3 - 0
system/jlib/jfile.cpp

@@ -6233,6 +6233,9 @@ public:
             if (!oldest)
                 break;
             oldest->cachedio.clear();
+            //If previously had max ios then we now have space.
+            if (n == max)
+                break;
         }
     }