Skip to content

Commit 0323aec

Browse files
author
Vladimir Kotal
committed
Revert "move finishWriting() to the common finally block"
This reverts commit 8a8debc.
1 parent 9efa947 commit 0323aec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexDatabase.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,17 +487,17 @@ public void update() throws IOException {
487487
reader.close();
488488
}
489489
}
490-
} catch (RuntimeException ex) {
491-
LOGGER.log(Level.SEVERE,
492-
"Failed with unexpected RuntimeException", ex);
493-
throw ex;
494-
} finally {
490+
495491
try {
496492
finishWriting();
497493
} catch (IOException e) {
498494
finishingException = e;
499495
}
500-
496+
} catch (RuntimeException ex) {
497+
LOGGER.log(Level.SEVERE,
498+
"Failed with unexpected RuntimeException", ex);
499+
throw ex;
500+
} finally {
501501
completer = null;
502502
try {
503503
if (writer != null) {

0 commit comments

Comments
 (0)