Sort files when performing GC in lookup storage

This commit is contained in:
Alexey Tsvetkov
2019-04-17 15:41:00 +03:00
parent ea4fc0fb6b
commit a7df7e2f9f
@@ -155,7 +155,7 @@ open class LookupStorage(
size = 0
deletedCount = 0
for ((file, oldId) in oldFileToId.entries) {
for ((file, oldId) in oldFileToId.entries.sortedBy { it.key.path }) {
val newId = addFileIfNeeded(file)
oldIdToNewId[oldId] = newId
}