Skip to content

Commit

Permalink
Merge pull request #2051 from sawsa307/fix-sync-loc
Browse files Browse the repository at this point in the history
Fix syncLock
  • Loading branch information
k8s-ci-robot authored Mar 31, 2023
2 parents 58f3b96 + 6137a44 commit 846fbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/neg/syncers/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ func (s *transactionSyncer) operationInternal(operation transactionOp, zone stri
endpointBatchErr := s.ValidateEndpointBatch(err, operation)
if endpointBatchErr != nil {
s.syncLock.Lock()
defer s.syncLock.Unlock()
s.setErrorState(s.getErrorStateReason(endpointBatchErr))
s.syncLock.Unlock()
}
}

Expand Down

0 comments on commit 846fbf3

Please sign in to comment.