Skip to content

Commit 139b38b

Browse files
committed
2 parents da938ff + 5765c83 commit 139b38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HibernateSpringBootDeadlockExample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**Key points:**
66
- start *Transaction (A)* and trigger a `SELECT` with `PESSIMISTIC_WRITE` to acquire an exclusive lock to table `author`
7-
- *Transaction (A)* update `author` genre with success and sleeps for 10s
7+
- *Transaction (A)* update `author` genre with success and sleeps for 10s
88
- after 5s, start a concurrent *Transaction B* that trigger a `SELECT` with `PESSIMISTIC_WRITE` to acquire an exclusive lock to table `book`
99
- *Transaction (B)* update `book` title with success and sleeps for 10s
1010
- *Transaction (A)* wakes up and attempt to update the book but it cannot acquire the lock holded by *Transaction (B)*

0 commit comments

Comments
 (0)