12859: Fix unclosed file descriptors in local filesystem driver.
authorTom Clegg <tom@curii.com>
Mon, 1 Nov 2021 18:49:29 +0000 (14:49 -0400)
committerTom Clegg <tom@curii.com>
Mon, 1 Nov 2021 18:49:29 +0000 (14:49 -0400)
commit9ff58642c2c1eaae8d6dd7c01e8fb85a030c2dfc
tree87d6e5c94fb170d588b31cad24e67140963b0ab5
parentcc9925788396b37cc64527257f8737a3dfcd7ab4
12859: Fix unclosed file descriptors in local filesystem driver.

Temporary file was not being closed/removed in the case where client
disconnection is detected while waiting for the volume-level serialize
lock.

Also, GetDeviceID was leaking one file descriptor per volume at
startup time.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
services/keepstore/unix_volume.go