|
|
@ -1043,9 +1043,14 @@ public class CacheImporter @Inject constructor( |
|
|
|
|
|
|
|
|
|
|
|
// import archives and version list |
|
|
|
// import archives and version list |
|
|
|
for (id in store.list(0)) { |
|
|
|
for (id in store.list(0)) { |
|
|
|
|
|
|
|
try { |
|
|
|
readArchive(store, id).use { archive -> |
|
|
|
readArchive(store, id).use { archive -> |
|
|
|
addArchive(connection, sourceId, archive) |
|
|
|
addArchive(connection, sourceId, archive) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} catch (ex: StoreCorruptException) { |
|
|
|
|
|
|
|
// see the comment in ChecksumTable::create |
|
|
|
|
|
|
|
logger.warn(ex) { "Skipping corrupt archive ($id)" } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// import files |
|
|
|
// import files |
|
|
|