Skip to content

Commit

Permalink
Update deletion count correctly
Browse files Browse the repository at this point in the history
Fixes #464
  • Loading branch information
MarkMpn committed May 7, 2024
1 parent 8bf0d19 commit c4671ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkMpn.Sql4Cds.Engine/ExecutionPlan/BaseDmlNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ private void ProcessBatch(ExecuteMultipleRequest req, int threadCount, ref int c
.Where(r => r.Fault != null)
.ToList();

Interlocked.Add(ref count, resp.Responses.Count - errorResponses.Count);
Interlocked.Add(ref count, req.Requests.Count - errorResponses.Count);
Interlocked.Add(ref errorCount, errorResponses.Count);

var error = errorResponses.FirstOrDefault(item => FilterErrors(context, req.Requests[item.RequestIndex], item.Fault));
Expand Down

0 comments on commit c4671ee

Please sign in to comment.