소스 검색

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

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 년 전
부모
커밋
df20735c74
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;
         }
     }