tsql - Why my sp deadlocked in a transaction? -
This is what SP does:
SET transaction transfer level serialzable transactionable transaction Start the current (select 1 to dbo.Portfolio, where RawMessageID = @RawMessageID) --- Some cleaning work should be removed from the portfolio, or insert some end in the portfolio @a, @b, @ c, @d commit Randomly, I see Deadlock and this Deadlock graph is showing detail.
Therefore, it should be that an example of the call is asking for a lock to be shared with a select statement and lock an empty resource. Another example is zero resource lock and asks for shared lock.
Is my guess right? I was trying to write a simplified version to display it, but can never trigger this deadlock
Can anyone help?
Comments
Post a Comment