read write handler update

This commit is contained in:
霍晓栋
2016-06-07 11:45:00 +08:00
parent 1ef81ac518
commit d514b6f3f9
2 changed files with 7 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,
return
}
urlLocation, err := operation.LookupFileId(fs.master, fileId)
urlLocation, err := operation.LookupFileId(fs.getMasterNode(), fileId)
if err != nil {
glog.V(1).Infoln("operation LookupFileId %s failed, err is %s", fileId, err.Error())
w.WriteHeader(http.StatusNotFound)