commit | 2a8fc14ddd5275c1a52c78fc79747e3b62812491 | [log] [tgz] |
---|---|---|
author | zheilbron <zheilbron@gmail.com> | Thu Jun 20 14:17:25 2013 -0700 |
committer | zheilbron <zheilbron@gmail.com> | Wed Jul 31 17:55:49 2013 -0700 |
tree | c75a834645185b6f1a34e2d0b8032d0b95249836 | |
parent | 3119983358da56eb941204eafd81bc92d236423c [diff] |
close log files before trying to delete them
diff --git a/asterix-transactions/src/main/java/edu/uci/ics/asterix/transaction/management/service/logging/LogManager.java b/asterix-transactions/src/main/java/edu/uci/ics/asterix/transaction/management/service/logging/LogManager.java index 5b10144..f037521 100644 --- a/asterix-transactions/src/main/java/edu/uci/ics/asterix/transaction/management/service/logging/LogManager.java +++ b/asterix-transactions/src/main/java/edu/uci/ics/asterix/transaction/management/service/logging/LogManager.java
@@ -604,6 +604,7 @@ } public void renewLogFiles() throws ACIDException { + closeLogPages(); List<String> logFileNames = LogUtil.getLogFiles(logManagerProperties); for (String name : logFileNames) { File file = new File(LogUtil.getLogFilePath(logManagerProperties, Long.parseLong(name))); @@ -611,7 +612,6 @@ throw new ACIDException("Failed to delete a file: " + name); } } - closeLogPages(); initLSN(); openLogPages(); logPageFlusher.renew();