mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 22:47:24 +08:00
filer: cross cluster synchronization
This commit is contained in:
@@ -59,6 +59,15 @@ func BeforeEntrySerialization(chunks []*FileChunk) {
|
||||
}
|
||||
}
|
||||
|
||||
func EnsureFid(chunk *FileChunk) {
|
||||
if chunk.Fid != nil {
|
||||
return
|
||||
}
|
||||
if fid, err := ToFileIdObject(chunk.FileId); err == nil {
|
||||
chunk.Fid = fid
|
||||
}
|
||||
}
|
||||
|
||||
func AfterEntryDeserialization(chunks []*FileChunk) {
|
||||
|
||||
for _, chunk := range chunks {
|
||||
|
Reference in New Issue
Block a user