minio/pkg/lock
Harshavardhana 353f2d3a6e fs: Hold format.json readLock ref to avoid GC. (#4532)
Looks like if we follow pattern such as

```
_ = rlk
```

Go can potentially kick in GC and close the fd when
the reference is lost, only speculation is that
the cause here is `SetFinalizer` which is set on
`os.close()` internally in `os` stdlib.

This is unexpected and unsual endeavour for Go, but
we have to make sure the reference is never lost
and always dies with the server.

Fixes #4530
2017-06-13 08:29:07 -07:00
..
lock_nix.go fs: Add safe locking semantics for format.json (#4523) 2017-06-12 17:40:28 -07:00
lock_solaris.go fs: Hold format.json readLock ref to avoid GC. (#4532) 2017-06-13 08:29:07 -07:00
lock_test.go fs: cleanup - do not cache size of metafiles (#3630) 2017-01-25 12:29:06 -08:00
lock_windows.go fs: Add safe locking semantics for format.json (#4523) 2017-06-12 17:40:28 -07:00
lock.go fs: Add safe locking semantics for format.json (#4523) 2017-06-12 17:40:28 -07:00