[Swift-commit] r5858 - trunk/src/org/griphyn/vdl/mapping/file
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Thu Jul 19 00:57:58 CDT 2012
Author: hategan
Date: 2012-07-19 00:57:58 -0500 (Thu, 19 Jul 2012)
New Revision: 5858
Modified:
trunk/src/org/griphyn/vdl/mapping/file/ConcurrentMapper.java
Log:
when remapping, mark old files as persistent so that when the time comes to clean them up, an error will not be thrown
Modified: trunk/src/org/griphyn/vdl/mapping/file/ConcurrentMapper.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/file/ConcurrentMapper.java 2012-07-19 05:56:32 UTC (rev 5857)
+++ trunk/src/org/griphyn/vdl/mapping/file/ConcurrentMapper.java 2012-07-19 05:57:58 UTC (rev 5858)
@@ -79,6 +79,11 @@
}
public synchronized void remap(Path path, Mapper sourceMapper, Path sourcePath) {
+ // this will prevent cleaning of the old file
+ // which doesn't need to be cleaned
+ PhysicalFormat old = map(sourcePath);
+ FileGarbageCollector.getDefault().markAsPersistent(old);
+
if (remappedPaths == null) {
remappedPaths = new HashMap();
}
More information about the Swift-commit
mailing list