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:
Shai Erera 2011-05-29 11:36:00 +00:00
parent 1f693331ff
commit bcfd0f0beb
1 changed files with 1 additions and 9 deletions

View File

@ -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