mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Writing contents of buffer to writer even if there was an error
This commit is contained in:
@@ -262,11 +262,8 @@ func (d *AllocDir) FSReadAt(allocID string, path string, offset int64, limit int
|
||||
return err
|
||||
}
|
||||
n, err := f.ReadAt(buf, offset)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
w.Write(buf[:n])
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
func fileCopy(src, dst string, perm os.FileMode) error {
|
||||
|
||||
Reference in New Issue
Block a user