GP-6246 update file timestamp of dwarf external debug files when used

otherwise they get aged-off before they should.
This commit is contained in:
dev747368
2026-01-07 00:15:06 +00:00
parent 5112c0024f
commit bc170c1b71

View File

@@ -160,7 +160,11 @@ public class LocalDirDebugInfoDProvider implements DebugFileStorage {
performInitMaintIfNeeded();
File f = getCachePath(debugInfo);
return f.isFile() ? f : null;
if (f.isFile()) {
f.setLastModified(System.currentTimeMillis());
return f;
}
return null;
}
private File getBuildidDir(String buildId) {
@@ -187,7 +191,7 @@ public class LocalDirDebugInfoDProvider implements DebugFileStorage {
performInitMaintIfNeeded();
File f = getCachePath(id);
File tmpF = new File(f.getParent(), ".tmp_" + f.getName());
File tmpF = new File(f.getParentFile(), ".tmp_" + f.getName());
FileUtilities.checkedMkdirs(f.getParentFile());
try (stream; FileOutputStream fos = new FileOutputStream(tmpF)) {
FSUtilities.streamCopy(stream.is(), fos, monitor);