Skip to content

Commit 76eb528

Browse files
authored
Merge pull request #2688 from erikdarlingdata/issue_2686
Stinkin batches
2 parents 1934d44 + 37caa24 commit 76eb528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sp_BlitzLock.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ You need to use an Azure storage account, and the path has to look like this: ht
349349
FROM ( SELECT dd.deadlock_xml,
350350
CONVERT(DATETIME2(7), SWITCHOFFSET(CONVERT(datetimeoffset, dd.event_date ), DATENAME(TzOffset, SYSDATETIMEOFFSET()))) AS event_date,
351351
dd.victim_id,
352-
dd.is_parallel,
352+
CONVERT(tinyint, dd.is_parallel) + CONVERT(tinyint, dd.is_parallel_batch) AS is_parallel,
353353
dd.deadlock_graph,
354354
ca.dp.value('@id', 'NVARCHAR(256)') AS id,
355355
ca.dp.value('@currentdb', 'BIGINT') AS database_id,
@@ -372,6 +372,7 @@ You need to use an Azure storage account, and the path has to look like this: ht
372372
d1.deadlock_xml.value('(event/@timestamp)[1]', 'DATETIME2') AS event_date,
373373
d1.deadlock_xml.value('(//deadlock/victim-list/victimProcess/@id)[1]', 'NVARCHAR(256)') AS victim_id,
374374
d1.deadlock_xml.exist('//deadlock/resource-list/exchangeEvent') AS is_parallel,
375+
d1.deadlock_xml.exist('//deadlock/resource-list/SyncPoint') AS is_parallel_batch,
375376
d1.deadlock_xml.query('/event/data/value/deadlock') AS deadlock_graph
376377
FROM #deadlock_data AS d1 ) AS dd
377378
CROSS APPLY dd.deadlock_xml.nodes('//deadlock/process-list/process') AS ca(dp)

0 commit comments

Comments
 (0)