projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3616a53
)
3448: add error checking in volume.Touch()
author
Tim Pierce <twp@curoverse.com>
Thu, 21 Aug 2014 23:00:18 +0000
(19:00 -0400)
committer
Tim Pierce <twp@curoverse.com>
Thu, 21 Aug 2014 23:00:18 +0000
(19:00 -0400)
Add error checking that was erroneously left out of previous commit.
Refs #3448.
services/keepstore/volume_unix.go
patch
|
blob
|
history
diff --git
a/services/keepstore/volume_unix.go
b/services/keepstore/volume_unix.go
index 0cebe4369524ede3ca6fd785d9cf5b3d849acc6c..f43997860061eb45688dcd9fa28cde40557e2194 100644
(file)
--- a/
services/keepstore/volume_unix.go
+++ b/
services/keepstore/volume_unix.go
@@
-103,7
+103,9
@@
func (v *UnixVolume) Touch(loc string) error {
if err != nil {
return err
}
- lockfile(f)
+ if e := lockfile(f); e != nil {
+ return e
+ }
defer unlockfile(f)
now := time.Now().Unix()
utime := syscall.Utimbuf{now, now}