LUCENE-3100: IW.commit() writes but fails to fsync the N.fnx file

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1104090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2011-05-17 09:59:08 +00:00
parent 4fd5dceb99
commit 801d63d369
1 changed files with 4 additions and 0 deletions

View File

@ -831,6 +831,10 @@ public final class SegmentInfos extends Vector<SegmentInfo> {
} catch (Throwable t) {
// throw orig excp
}
} else {
// we must sync here explicitly since during a commit
// IW will not sync the global field map.
dir.sync(Collections.singleton(name));
}
}
return version;