mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-16 10:47:42 +00:00
Merge pull request #168 from internetarchive/gh-167
fix for race-condition when first using the WARC writers https://gith…
This commit is contained in:
commit
87a15bddc8
1 file changed
+3
-1
@@ -454,7 +454,9 @@ implements Lifecycle, Checkpointable, WriterPoolSettings {
|
||||
File f = path.getFile();
|
||||
if (!f.exists()) {
|
||||
try {
|
||||
FileUtils.ensureWriteableDirectory(f);
|
||||
synchronized (this) {
|
||||
FileUtils.ensureWriteableDirectory(f);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user