|
|
@ -102,11 +102,11 @@ public class CacheImporter @Inject constructor( |
|
|
|
|
|
|
|
|
|
|
|
// import master index |
|
|
|
// import master index |
|
|
|
val masterIndex = createMasterIndex(store) |
|
|
|
val masterIndex = createMasterIndex(store) |
|
|
|
|
|
|
|
val masterIndexId = try { |
|
|
|
if (masterIndex.index.entries.isEmpty()) { |
|
|
|
if (masterIndex.index.entries.isEmpty()) { |
|
|
|
throw IOException("Master index empty, cache probably corrupt") |
|
|
|
throw IOException("Master index empty, cache probably corrupt") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val masterIndexId = try { |
|
|
|
|
|
|
|
addMasterIndex(connection, masterIndex) |
|
|
|
addMasterIndex(connection, masterIndex) |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
masterIndex.release() |
|
|
|
masterIndex.release() |
|
|
|