mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-18 03:58:32 +02:00
go fmt
This commit is contained in:
1 parent
066f7c3a0d
commit
e648c76bcf
51 files changed
+245
-257
No files matched your search
@@ -18,8 +18,8 @@ import (
|
||||
// existed in VolumeEcShardsGenerate before the fix in this PR.
|
||||
//
|
||||
// Previously, the order was:
|
||||
// 1. WriteEcFilesWithContext(baseFileName, ecCtx) — EC shards from .dat
|
||||
// 2. WriteSortedFileFromIdx(v.IndexFileName(), ".ecx") — .ecx from .idx
|
||||
// 1. WriteEcFilesWithContext(baseFileName, ecCtx) — EC shards from .dat
|
||||
// 2. WriteSortedFileFromIdx(v.IndexFileName(), ".ecx") — .ecx from .idx
|
||||
//
|
||||
// If a write appended data to .dat/.idx between steps 1 and 2, the .ecx would
|
||||
// have entries pointing to data that doesn't exist in the EC shards.
|
||||
|
||||
@@ -287,7 +287,7 @@ func TestEcDecodeDatRoundTrip(t *testing.T) {
|
||||
// to avoid needing huge test files. We test small block decode only.
|
||||
// Each shard gets datSize/DataShards bytes in small 1MB blocks.
|
||||
datSizes := []int64{
|
||||
1000, // tiny
|
||||
1000, // tiny
|
||||
int64(DataShardsCount) * ErasureCodingSmallBlockSize, // exactly 1 small row (10MB)
|
||||
int64(DataShardsCount)*ErasureCodingSmallBlockSize + 500, // 1 small row + partial
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user