Commit 1f87e13
committed
fix: tolerate re-import on an already-authorized pool session key
Session files persisted by earlier runs (where the import succeeded but
the login was never finalized client-side) hold a key that already
carries the account authorization; re-importing onto it is rejected by
the server with AUTH_BYTES_INVALID and the bootstrap aborted.
Treat AUTH_BYTES_INVALID on import as already-authorized: finalize the
login client-side with the user id returned by exportAuthorization and
let the workers verify the session by use, falling back to the
sequential download if it turns out to be broken.1 parent c78ba87 commit 1f87e13
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
355 | 368 | | |
356 | 369 | | |
357 | 370 | | |
| |||
0 commit comments