Modified:
/src/org/tranche/flatfile/DataBlockUtil.java
=======================================
--- /src/org/tranche/flatfile/DataBlockUtil.java Tue Apr 27 10:26:55 2010
+++ /src/org/tranche/flatfile/DataBlockUtil.java Fri Jul 30 12:08:01 2010
@@ -990,7 +990,12 @@
* @return
*/
public File getDataDeletionLog() {
- return new
File(this.ffts.getHomeDirectory(), "deleted-data-chunks.log");
+ final String log = "deleted-data-chunks.log";
+ if (this.ffts != null) {
+ return new File(this.ffts.getHomeDirectory(), log);
+ }
+
+ return new File(log);
}
/**
@@ -1032,7 +1037,11 @@
* @return
*/
public File getCorruptedDataBlocksLog() {
- return new
File(this.ffts.getHomeDirectory(), "corrupted-datablocks.log");
+ final String log = "corrupted-datablocks.log";
+ if (this.ffts != null) {
+ return new File(this.ffts.getHomeDirectory(), log);
+ }
+ return new File(log);
}
/**
@@ -1040,7 +1049,11 @@
* @return
*/
public File getMetaDataDeletionLog() {
- return new
File(this.ffts.getHomeDirectory(), "deleted-meta-data-chunks.log");
+ final String log = "deleted-meta-data-chunks.log";
+ if (this.ffts != null) {
+ return new File(this.ffts.getHomeDirectory(), log);
+ }
+ return new File(log);
}
private boolean lastLogDataDeletions =
ConfigKeys.DEFAULT_LOG_DATA_CHUNK_DELETIONS;