mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 21:23:45 +00:00
fix(reference): preserve physical failures across late cancellation (#10072)
* fix(reference): preserve physical failures across late cancellation * fix(reference): retain late cancellation alongside read failures * fix(reference): preserve metadata errors through cancellation * fix(reference): retain directory failure identity * fix(reference): preserve parallel physical and cancellation outcomes * fix(reference): preserve optional Git metadata absence
This commit is contained in:
1 parent
3ad2e214be
commit
0e0af455f2
13 files changed
+781
-199
No files matched your search
@@ -173,7 +173,16 @@ const finalizeFileRead = async (
|
||||
dirname(absolute),
|
||||
request.signal,
|
||||
);
|
||||
if (!parentAfter.ok || !sameFile(parentBefore.stats, parentAfter.stats))
|
||||
if (!parentAfter.ok)
|
||||
return entryFailure(
|
||||
path,
|
||||
"file",
|
||||
parentAfter.code,
|
||||
parentAfter.message,
|
||||
total,
|
||||
parentAfter.localDiagnostic,
|
||||
);
|
||||
if (!sameFile(parentBefore.stats, parentAfter.stats))
|
||||
return entryFailure(
|
||||
path,
|
||||
"file",
|
||||
@@ -279,7 +288,7 @@ const readStableFileEntry = async (
|
||||
retain(cause.owner);
|
||||
cause = cause.cause;
|
||||
}
|
||||
if (regularFileCancellation(cause) !== undefined || isAborted(signal))
|
||||
if (regularFileCancellation(cause) !== undefined)
|
||||
return entryFailure(
|
||||
path,
|
||||
"file",
|
||||
|
||||
Reference in new issue
Block a user