some additional logging

This commit is contained in:
Dmitry Jemerov
2009-09-09 18:41:11 +04:00
parent de97e2403b
commit af5c2ffcaa
2 changed files with 4 additions and 1 deletions
@@ -169,7 +169,7 @@ public class FSRecords implements Disposable, Forceable {
}
if (myRecords.getInt(HEADER_CONNECTION_STATUS_OFFSET) != SAFELY_CLOSED_MAGIC) {
throw new IOException("FS repostiory wasn't safely shut down");
throw new IOException("FS repository wasn't safely shut down");
}
markDirty();
}
@@ -217,6 +217,7 @@ public class FSRecords implements Disposable, Forceable {
}
private static void invalidateIndex() {
LOG.info("Marking VFS as corrupted");
FileUtil.createIfDoesntExist(new File(PathManager.getIndexRoot(), "corruption.marker"));
}
@@ -65,7 +65,9 @@ public class PersistentFS extends ManagingFS implements ApplicationComponent {
*/
ShutDownTracker.getInstance().registerShutdownTask(new Runnable() {
public void run() {
LOG.info("VFS dispose started");
myRecords.dispose();
LOG.info("VFS dispose completed");
}
});
}