mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
filer: retain chunk modification time during server-side copy
Signed-off-by: Perfloop Agent <agent@perfloop.ai>
This commit is contained in:
1 file changed
+5
-4
@@ -846,10 +846,11 @@ func (fs *FilerServer) streamCopyChunk(ctx context.Context, srcChunk *filer_pb.F
|
||||
|
||||
// Success - create chunk metadata
|
||||
newChunk := &filer_pb.FileChunk{
|
||||
FileId: fileId,
|
||||
Offset: srcChunk.Offset,
|
||||
Size: srcChunk.Size,
|
||||
ETag: srcChunk.ETag,
|
||||
FileId: fileId,
|
||||
Offset: srcChunk.Offset,
|
||||
Size: srcChunk.Size,
|
||||
ETag: srcChunk.ETag,
|
||||
ModifiedTsNs: srcChunk.ModifiedTsNs,
|
||||
}
|
||||
|
||||
glog.V(4).InfofCtx(ctx, "FilerServer.streamCopyChunk: successfully streamed %d bytes", srcChunk.Size)
|
||||
|
||||
Reference in new issue
Block a user