Fix build error due to cross-merge

This commit is contained in:
Patrick Pacher 2020-09-29 09:22:08 +02:00
parent baf6301eb5
commit 85415455ed
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D

View file

@ -279,8 +279,8 @@ func (c *Controller) MaintainRecordStates(ctx context.Context, purgeDeletedBefor
// Purge deletes all records that match the given query. It returns the number of successful deletes and an error.
func (c *Controller) Purge(ctx context.Context, q *query.Query, local, internal bool) (int, error) {
c.writeLock.RLock()
defer c.writeLock.RUnlock()
c.exclusiveAccess.RLock()
defer c.exclusiveAccess.RUnlock()
if shuttingDown.IsSet() {
return 0, ErrShuttingDown