proxmox-backup/src
Thomas Lamprecht fe0efb25e8 backup: index readers: drop useless shared lock
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 commit
0465218953

But then later, in commit c8ec450e37)
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>
2020-10-09 12:59:31 +02:00
..
api2 reader: actually allow users to downlod their own backups 2020-10-09 12:54:30 +02:00
backup backup: index readers: drop useless shared lock 2020-10-09 12:59:31 +02:00
bin fuse_loop: add automatic cleanup of run files and dangling instances 2020-10-08 08:37:05 +02:00
client format: fix typo in function name 2020-10-08 08:32:21 +02:00
config server: add Datastore.Allocate privilege 2020-10-08 09:12:08 +02:00
pxar remove DummyCatalogWriter 2020-09-24 09:13:54 +02:00
rrd rrd: fix integer underflow 2020-10-01 14:30:32 +02:00
server REST: don't print CSRF token 2020-10-08 15:57:22 +02:00
tools fuse_loop: handle unmap on crashed instance 2020-10-08 08:38:25 +02:00
api2.rs move subscription API path to /nodes 2020-07-21 19:33:52 +02:00
auth_helpers.rs avoid chrono dependency, depend on proxmox 0.3.8 2020-09-15 07:12:57 +02:00
auth.rs introduce Username, Realm and Userid api types 2020-08-10 12:05:01 +02:00
backup.rs backup: add BACKUP_GROUP_NAME const and backup_group helper 2020-08-26 10:27:47 +02:00
buildcfg.rs some clippy fixups 2019-09-11 12:14:05 +02:00
client.rs switch to external pxar and fuse crates 2020-06-08 13:56:58 +02:00
config.rs config: add JobState helper 2020-08-13 11:36:10 +02:00
lib.rs add simple rrd implementation 2020-05-23 10:42:48 +02:00
server.rs move src/api_schema/config.rs -> src/server/config.rs 2019-11-22 09:23:03 +01:00
tools.rs client: implement map/unmap commands for .img backups 2020-10-06 09:08:14 +02:00