mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
filer: pass cutToSpan in the manifest reuse test (#13082)
ResolveChunkManifest gained a cutToSpan argument while this test was in flight, so master stopped compiling weed/server. The test compares chunk lists, so it resolves every referenced chunk. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cf028f683
commit
e6aed012f8
1 file changed
+2
-2
@@ -202,7 +202,7 @@ func TestCommitKeepsTheStoredManifestOfChunksListedFlat(t *testing.T) {
|
||||
fs.filer.FileIdDeletionQueue.Consume(func(fileIds []string) { queued = append(queued, fileIds...) })
|
||||
require.Empty(t, queued, "chunks queued for deletion")
|
||||
|
||||
data, _, err := filer.ResolveChunkManifest(ctx, fs.lookupFileId, stored.GetChunks(), 0, math.MaxInt64, nil)
|
||||
data, _, err := filer.ResolveChunkManifest(ctx, fs.lookupFileId, stored.GetChunks(), 0, math.MaxInt64, nil, false)
|
||||
require.NoError(t, err)
|
||||
require.ElementsMatch(t, walChunkIds(walChunks(n+1)), walChunkIds(data))
|
||||
})
|
||||
@@ -243,7 +243,7 @@ func TestCommitDropsTheStoredManifestOfChunksItNoLongerLists(t *testing.T) {
|
||||
}
|
||||
require.ElementsMatch(t, walChunkIds([]*filer_pb.FileChunk{manifests[0], walChunks(n)[5]}), queued)
|
||||
|
||||
data, _, err := filer.ResolveChunkManifest(ctx, fs.lookupFileId, stored.GetChunks(), 0, math.MaxInt64, nil)
|
||||
data, _, err := filer.ResolveChunkManifest(ctx, fs.lookupFileId, stored.GetChunks(), 0, math.MaxInt64, nil, false)
|
||||
require.NoError(t, err)
|
||||
require.ElementsMatch(t, walChunkIds(rewritten.Chunks), walChunkIds(data))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user