Implement lock.Open() to fix #5642 (#6150)

This commit is contained in:
Stefan Husch 2018-07-14 03:37:02 +02:00 committed by kannappanr
parent a1ef90be52
commit 914c76a801

View File

@ -98,3 +98,8 @@ func TryLockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, er
func LockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) {
return lockedOpenFile(path, flag, perm, syscall.F_SETLKW)
}
// Open - Call os.OpenFile
func Open(path string, flag int, perm os.FileMode) (*os.File, error) {
return os.OpenFile(path, flag, perm)
}