About pDeadlockHandler
This program is called when a deadlock situation occurs. It provides generic handling of deadlock situations after database operations as follows:
- It checks to see if a transaction has been retried a preset number of times.
- If the retry count is below the threshold, the program returns a status indicator to tell the caller to retry the transaction. Otherwise, the user is told that the retry count has been exceeded and a message is posted asking if the user wants to continue trying.