mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 00:49:24 +08:00
passing entry.Extended
This commit is contained in:
@@ -29,6 +29,7 @@ func (fs *FilerServer) LookupDirectoryEntry(ctx context.Context, req *filer_pb.L
|
|||||||
IsDirectory: entry.IsDirectory(),
|
IsDirectory: entry.IsDirectory(),
|
||||||
Attributes: filer2.EntryAttributeToPb(entry),
|
Attributes: filer2.EntryAttributeToPb(entry),
|
||||||
Chunks: entry.Chunks,
|
Chunks: entry.Chunks,
|
||||||
|
Extended: entry.Extended,
|
||||||
},
|
},
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
@@ -74,6 +75,7 @@ func (fs *FilerServer) ListEntries(req *filer_pb.ListEntriesRequest, stream file
|
|||||||
IsDirectory: entry.IsDirectory(),
|
IsDirectory: entry.IsDirectory(),
|
||||||
Chunks: entry.Chunks,
|
Chunks: entry.Chunks,
|
||||||
Attributes: filer2.EntryAttributeToPb(entry),
|
Attributes: filer2.EntryAttributeToPb(entry),
|
||||||
|
Extended: entry.Extended,
|
||||||
},
|
},
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
@@ -162,13 +164,14 @@ func (fs *FilerServer) UpdateEntry(ctx context.Context, req *filer_pb.UpdateEntr
|
|||||||
newEntry := &filer2.Entry{
|
newEntry := &filer2.Entry{
|
||||||
FullPath: filer2.FullPath(filepath.ToSlash(filepath.Join(req.Directory, req.Entry.Name))),
|
FullPath: filer2.FullPath(filepath.ToSlash(filepath.Join(req.Directory, req.Entry.Name))),
|
||||||
Attr: entry.Attr,
|
Attr: entry.Attr,
|
||||||
Extended: entry.Extended,
|
Extended: req.Entry.Extended,
|
||||||
Chunks: chunks,
|
Chunks: chunks,
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(3).Infof("updating %s: %+v, chunks %d: %v => %+v, chunks %d: %v",
|
glog.V(3).Infof("updating %s: %+v, chunks %d: %v => %+v, chunks %d: %v, extended: %v => %v",
|
||||||
fullpath, entry.Attr, len(entry.Chunks), entry.Chunks,
|
fullpath, entry.Attr, len(entry.Chunks), entry.Chunks,
|
||||||
req.Entry.Attributes, len(req.Entry.Chunks), req.Entry.Chunks)
|
req.Entry.Attributes, len(req.Entry.Chunks), req.Entry.Chunks,
|
||||||
|
entry.Extended, req.Entry.Extended)
|
||||||
|
|
||||||
if req.Entry.Attributes != nil {
|
if req.Entry.Attributes != nil {
|
||||||
if req.Entry.Attributes.Mtime != 0 {
|
if req.Entry.Attributes.Mtime != 0 {
|
||||||
|
Reference in New Issue
Block a user