Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubo_final
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anastasiia Chirikova
kubo_final
Commits
95f01537
Commit
95f01537
authored
10 years ago
by
Jeromy Johnson
Committed by
Jeromy
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
correct the blocksize calculation for link blocks
update hash for bigfile
parent
54633317
Branches
Branches containing commit
No related tags found
1 merge request
!1
New
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
importer/helpers/helpers.go
+1
-1
1 addition, 1 deletion
importer/helpers/helpers.go
test/sharness/t0040-add-and-cat.sh
+1
-1
1 addition, 1 deletion
test/sharness/t0040-add-and-cat.sh
with
2 additions
and
2 deletions
importer/helpers/helpers.go
+
1
−
1
View file @
95f01537
...
...
@@ -18,7 +18,7 @@ var BlockSizeLimit = 1048576 // 1 MB
// rough estimates on expected sizes
var
roughDataBlockSize
=
chunk
.
DefaultBlockSize
var
roughLinkBlockSize
=
1
<<
13
// 8KB
var
roughLinkSize
=
258
+
8
+
5
// sha256 multihash + size + no name + protobuf framing
var
roughLinkSize
=
34
+
8
+
5
// sha256 multihash + size + no name + protobuf framing
// DefaultLinksPerBlock governs how the importer decides how many links there
// will be per block. This calculation is based on expected distributions of:
...
...
This diff is collapsed.
Click to expand it.
test/sharness/t0040-add-and-cat.sh
+
1
−
1
View file @
95f01537
...
...
@@ -138,7 +138,7 @@ test_expect_success EXPENSIVE "ipfs add bigfile succeeds" '
'
test_expect_success EXPENSIVE
"ipfs add bigfile output looks good"
'
HASH="Qm
SVxWkYfbJ3cowQUUgF4iF4CQd92vubxw7bs2aZAVRUD9
" &&
HASH="Qm
U9SWAPPmNEKZB8umYMmjYvN7VyHqABNvdA6GUi4MMEz3
" &&
echo "added $HASH mountdir/bigfile" >expected &&
test_cmp expected actual
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment