1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 07:43:03 +00:00

serve: Use non-exclusive read lock

This commit is contained in:
Alexander Neumann 2024-04-28 22:01:25 +02:00
parent fb45bd5d42
commit cd720149eb

View file

@ -45,7 +45,7 @@ func runWebServer(ctx context.Context, opts ServeOptions, gopts GlobalOptions, a
return errors.Fatal("this command does not accept additional arguments")
}
ctx, repo, unlock, err := openWithExclusiveLock(ctx, gopts, gopts.NoLock)
ctx, repo, unlock, err := openWithReadLock(ctx, gopts, gopts.NoLock)
if err != nil {
return err
}