Closed appy-one closed 1 year ago
Closes #183
Adds a recovery options that repairs damaged nodes that use a B+Tree to store its child keys.
Usage: await db.recovery.repairNodeTree(path) (execute once to fix)
await db.recovery.repairNodeTree(path)
This PR also prevents B+Trees from becoming damaged in the future if it grows, but fails to be rewritten to disk because of a filesystem error.
Closes #183
Adds a recovery options that repairs damaged nodes that use a B+Tree to store its child keys.
Usage:
await db.recovery.repairNodeTree(path)
(execute once to fix)This PR also prevents B+Trees from becoming damaged in the future if it grows, but fails to be rewritten to disk because of a filesystem error.