-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make the tar writer handle sharded ipfs directories #4873
Conversation
makes ipfs get work on sharded directories fixes #4871 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Unfortunately, fixing this would require breaking the API. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
case unixfspb.Data_HAMTShard: | ||
// We need a streaming ls API for this. | ||
res.SetError(fmt.Errorf("cannot list large directories yet"), cmdkit.ErrNormal) | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be okay to have this without a streaming ls
. It's just gonna take its time to run, just like dir-listings on the gateway for sharded directories.
The streaming ls
is an optimization (an important one nevertheless).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me (although let's fix that in a different PR #4874).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whyrusleeping can @Stebalien merge this one asap? Thanks!
I'll review it when I get back to my computer. |
Makes ipfs get work on sharded directories.
fixes #4871