mirror of https://github.com/apache/lucene.git
always fsync for now (it's causing test failures otherwise)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1407313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58d914e533
commit
cd7dfb5ca6
|
@ -162,7 +162,9 @@ public class MockDirectoryWrapper extends BaseDirectoryWrapper {
|
|||
throw new IOException("cannot sync after crash");
|
||||
}
|
||||
unSyncedFiles.removeAll(names);
|
||||
if (LuceneTestCase.rarely(randomState) || delegate instanceof NRTCachingDirectory) {
|
||||
// TODO: need to improve hack to be OK w/
|
||||
// RateLimitingDirWrapper in between...
|
||||
if (true || LuceneTestCase.rarely(randomState) || delegate instanceof NRTCachingDirectory) {
|
||||
// don't wear out our hardware so much in tests.
|
||||
delegate.sync(names);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue