fe0efb25e8
This is only acquired in those two methods, both as shared. So it has no use. It seems, that it was planned in the past that the index deletion should take the exclusive, while read and write takes the shared flock on the index, as one can guess from the lock comments in commit0465218953But then later, in commitc8ec450e37) the documented semantics where changed to use a temp file and do an atomic rename instead for atomicity. The reader shared flock on the index file was done inbetween, probably as preparatory step, but was not removed again when strategy was changed to using the file rename instead. Do so now, to avoid confusion of readers and a useless flock. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>