aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filechunk_section_test.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2023-01-12 23:07:36 -0800
committerGitHub <noreply@github.com>2023-01-12 23:07:36 -0800
commit1cd2e64aacc515beeddbe9fd64419740c04472f6 (patch)
tree6f5fc1d9eab970ab2cff40bbd316b6d2b1a33395 /weed/filer/filechunk_section_test.go
parent2452f3b2f74d8254190cce5291b68862d67e9100 (diff)
downloadseaweedfs-1cd2e64aacc515beeddbe9fd64419740c04472f6.tar.xz
seaweedfs-1cd2e64aacc515beeddbe9fd64419740c04472f6.zip
merge chunks during upload (#4130)
* merge chunks during upload * fix test
Diffstat (limited to 'weed/filer/filechunk_section_test.go')
-rw-r--r--weed/filer/filechunk_section_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/weed/filer/filechunk_section_test.go b/weed/filer/filechunk_section_test.go
index e4536540b..7b76c8456 100644
--- a/weed/filer/filechunk_section_test.go
+++ b/weed/filer/filechunk_section_test.go
@@ -7,31 +7,31 @@ import (
func Test_removeGarbageChunks(t *testing.T) {
section := NewFileChunkSection(0)
- section.addChunk(&filer_pb.FileChunk{
+ section.chunks = append(section.chunks, &filer_pb.FileChunk{
FileId: "0",
Offset: 0,
Size: 1,
ModifiedTsNs: 0,
})
- section.addChunk(&filer_pb.FileChunk{
+ section.chunks = append(section.chunks, &filer_pb.FileChunk{
FileId: "1",
Offset: 1,
Size: 1,
ModifiedTsNs: 1,
})
- section.addChunk(&filer_pb.FileChunk{
+ section.chunks = append(section.chunks, &filer_pb.FileChunk{
FileId: "2",
Offset: 2,
Size: 1,
ModifiedTsNs: 2,
})
- section.addChunk(&filer_pb.FileChunk{
+ section.chunks = append(section.chunks, &filer_pb.FileChunk{
FileId: "3",
Offset: 3,
Size: 1,
ModifiedTsNs: 3,
})
- section.addChunk(&filer_pb.FileChunk{
+ section.chunks = append(section.chunks, &filer_pb.FileChunk{
FileId: "4",
Offset: 4,
Size: 1,