Repository navigation
fix(backup): use BigInt for NTFS inode checks - #1440
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoFix NTFS inode collisions in backup discovery and restore
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
Use { bigint: true } in isLiveDatabaseTarget, evaluateDowngradeBackupCandidate, and materializeRestoreSource so 64-bit NTFS File Reference Numbers (st_ino >= 2^53) do not collide under IEEE-754 Number rounding.
Fixes #1439
1bf5a4f to
cc25703
Compare
Use BigInt statSync({ bigint: true }) device and inode comparison in isSameFileOrPath so 64-bit Windows NTFS file indices above Number.MAX_SAFE_INTEGER never lose precision or falsely collide during backup discovery and downgrade recovery.
Fixes #1439