Skip to content

Commit

Permalink
invalidate stat cache when setting lock
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Jan 28, 2022
1 parent 445c46b commit 8b2d31c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/grpc/services/gateway/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ func (s *svc) SetLock(ctx context.Context, req *provider.SetLockRequest) (*provi
return nil, errors.Wrap(err, "gateway: error calling SetLock")
}

s.cache.RemoveStat(ctxpkg.ContextMustGetUser(ctx), req.GetRef().ResourceId)
return res, nil
}

Expand Down

0 comments on commit 8b2d31c

Please sign in to comment.