mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix chunk.ModifiedTsNs (#4264)
* fix * fix mtime s > ns --------- Co-authored-by: zemul <zhouzemiao@ihuman.com>
This commit is contained in:
parent
8241c9a829
commit
0bf56298d5
|
@ -154,10 +154,11 @@ func (fs *FilerServer) CacheRemoteObjectToLocalCluster(ctx context.Context, req
|
||||||
}
|
}
|
||||||
|
|
||||||
chunks = append(chunks, &filer_pb.FileChunk{
|
chunks = append(chunks, &filer_pb.FileChunk{
|
||||||
|
|
||||||
FileId: assignResult.Fid,
|
FileId: assignResult.Fid,
|
||||||
Offset: localOffset,
|
Offset: localOffset,
|
||||||
Size: uint64(size),
|
Size: uint64(size),
|
||||||
ModifiedTsNs: time.Now().Unix(),
|
ModifiedTsNs: time.Now().UnixNano(),
|
||||||
ETag: etag,
|
ETag: etag,
|
||||||
Fid: &filer_pb.FileId{
|
Fid: &filer_pb.FileId{
|
||||||
VolumeId: uint32(fileId.VolumeId),
|
VolumeId: uint32(fileId.VolumeId),
|
||||||
|
|
|
@ -163,6 +163,7 @@ func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io.
|
||||||
|
|
||||||
if *c.findMissingChunksInFiler {
|
if *c.findMissingChunksInFiler {
|
||||||
// collect all filer file ids and paths
|
// collect all filer file ids and paths
|
||||||
|
|
||||||
if err = c.collectFilerFileIdAndPaths(dataNodeVolumeIdToVInfo, *purgeAbsent, collectCutoffFromAtNs); err != nil {
|
if err = c.collectFilerFileIdAndPaths(dataNodeVolumeIdToVInfo, *purgeAbsent, collectCutoffFromAtNs); err != nil {
|
||||||
return fmt.Errorf("collectFilerFileIdAndPaths: %v", err)
|
return fmt.Errorf("collectFilerFileIdAndPaths: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue