fix(startup): recheck sizes after reading storage

This commit is contained in:
vorotamoroz committed 2026-10-24 11:41:56 +00:00
1 parent fc2b35e0dc
commit fd2eebdf38
3 files changed
+41

No files matched your search

@@ -117,6 +117,10 @@ export async function checkIncompleteDocuments(
continue;
}
sizeOnStorage = storageFileContent.byteLength;
// The file may have changed since stat, so recheck using the bytes read.
if (recordedSize === actualSize && sizeOnStorage === actualSize && !isConflicted) {
continue;
}
const contentMatched = await isDocContentSame(doc.data, storageFileContent);
errorFiles.push({
path,