mirror of
https://gitee.com/sjqzhang/go-fastdfs.git
synced 2024-11-29 17:57:41 +08:00
bugfix sync file fail when support_group_manage is true
This commit is contained in:
parent
c02e3af8cb
commit
a23368161f
@ -878,7 +878,11 @@ func (this *Server) DownloadFromPeer(peer string, fileInfo *FileInfo) {
|
||||
//fmt.Println("downloadFromPeer",fileInfo)
|
||||
p := strings.Replace(fileInfo.Path, STORE_DIR_NAME+"/", "", 1)
|
||||
//filename=this.util.UrlEncode(filename)
|
||||
if Config().SupportGroupManage {
|
||||
downloadUrl = peer + "/" + Config().Group + "/" + p + "/" + filename
|
||||
} else {
|
||||
downloadUrl = peer + "/" + p + "/" + filename
|
||||
}
|
||||
log.Info("DownloadFromPeer: ", downloadUrl)
|
||||
fpath = DOCKER_DIR + fileInfo.Path + "/" + filename
|
||||
fpathTmp = DOCKER_DIR + fileInfo.Path + "/" + fmt.Sprintf("%s_%s", "tmp_", filename)
|
||||
|
Loading…
Reference in New Issue
Block a user