mirror of https://github.com/restic/restic.git
serve: Use non-exclusive read lock
This commit is contained in:
parent
fb45bd5d42
commit
cd720149eb
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue