mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 03:53:34 +08:00
delay file creation without chunks from dir.Create to file.Flush
This commit is contained in:
@@ -52,7 +52,13 @@ func runFilerReplicate(cmd *Command, args []string) bool {
|
||||
glog.Errorf("receive %s: %+v", key, err)
|
||||
continue
|
||||
}
|
||||
glog.V(1).Infof("processing file: %s", key)
|
||||
if m.OldEntry!=nil&&m.NewEntry==nil{
|
||||
glog.V(1).Infof("delete: %s", key)
|
||||
}else if m.OldEntry==nil&&m.NewEntry!=nil{
|
||||
glog.V(1).Infof(" add: %s", key)
|
||||
}else{
|
||||
glog.V(1).Infof("modify: %s", key)
|
||||
}
|
||||
if err = replicator.Replicate(key, m); err != nil {
|
||||
glog.Errorf("replicate %s: %+v", key, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user