holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 135 forks source link

Fix checkout clear bug #335

Closed andrewosh closed 1 year ago

andrewosh commented 1 year ago

Clearing on a checkout does not currently work, because _open on a checkout doesn't eagerly open the blobs (causing clear to short-circuit). Let me know if I'm misunderstanding the reasoning for that.

The first commit in this PR is the failing test, and the second is the fix.