From 44057a4de18e4fdc9b9249d76ba8208654b507ee Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 20 Jul 2020 22:01:39 -0700 Subject: [PATCH] clean up chunks in manifest --- weed/filer2/filechunk_manifest.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/filer2/filechunk_manifest.go b/weed/filer2/filechunk_manifest.go index e7b4df1fe..62d2c6e7f 100644 --- a/weed/filer2/filechunk_manifest.go +++ b/weed/filer2/filechunk_manifest.go @@ -45,6 +45,7 @@ func ResolveChunkManifest(lookupFileIdFn LookupFileIdFunctionType, chunks []*fil } manifestChunks = append(manifestChunks, chunk) // recursive + filer_pb.AfterEntryDeserialization(m.Chunks) dchunks, mchunks, subErr := ResolveChunkManifest(lookupFileIdFn, m.Chunks) if subErr != nil { return chunks, nil, subErr @@ -107,6 +108,8 @@ func doMaybeManifestize(saveFunc SaveDataAsChunkFunctionType, inputChunks []*fil func mergeIntoManifest(saveFunc SaveDataAsChunkFunctionType, dataChunks []*filer_pb.FileChunk) (manifestChunk *filer_pb.FileChunk, err error) { + filer_pb.BeforeEntrySerialization(dataChunks) + // create and serialize the manifest data, serErr := proto.Marshal(&filer_pb.FileChunkManifest{ Chunks: dataChunks,