Skip to content

Commit

Permalink
Add flag to RandomAccessFile cache to cleanup deleted files (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski authored Feb 8, 2024
1 parent 7c552dc commit 8c02320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tds/src/main/java/thredds/server/config/TdsInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ private void readThreddsConfig() {
max = ThreddsConfig.getInt("RandomAccessFile.maxFiles", 500);
secs = ThreddsConfig.getSeconds("RandomAccessFile.scour", 11 * 60);
if (max > 0) {
RandomAccessFile.setGlobalFileCache(new FileCache("RandomAccessFile", min, max, -1, secs));
RandomAccessFile.setGlobalFileCache(new FileCache("RandomAccessFile", min, max, -1, secs, true));
startupLog.info("TdsInit: RandomAccessFile.initPartitionCache= [" + min + "," + max + "] scour = " + secs);
}

Expand Down

0 comments on commit 8c02320

Please sign in to comment.