mirror of https://github.com/apache/lucene.git
LUCENE-3147: undo unneccessary protection+abort in flush()
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1128868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1f693331ff
commit
bcfd0f0beb
|
@ -71,15 +71,7 @@ final class DocFieldProcessor extends DocConsumer {
|
|||
childFields.put(f.getFieldInfo(), f);
|
||||
}
|
||||
|
||||
boolean success = false;
|
||||
try {
|
||||
fieldsWriter.flush(state);
|
||||
success = true;
|
||||
} finally {
|
||||
if (!success) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
fieldsWriter.flush(state);
|
||||
consumer.flush(childFields, state);
|
||||
|
||||
// Important to save after asking consumer to flush so
|
||||
|
|
Loading…
Reference in New Issue