- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
4#
发表于 2013-11-19 15:20:43
Deadlock graph:
---------Blocker(s)-------- ---------Waiter(s)---------
Resource Name process session holds waits process session holds waits
TX-002a000c-000b7ac7 124 1223 X 367 2078 X
TX-0032001d-0006d9a1 367 2078 X 124 1223 X
session 1223: DID 0001-007C-00223740 session 2078: DID 0001-016F-00013484
session 2078: DID 0001-016F-00013484 session 1223: DID 0001-007C-00223740
Rows waited on:
Session 1223: obj - rowid = 00039287 - AAA5KHAAgAAAJcQACo
(dictionary objn - 234119, file - 32, block - 38672, slot - 168)
Session 2078: obj - rowid = 00038F03 - AAA48DAAeAABDTzAAm
(dictionary objn - 233219, file - 30, block - 275699, slot - 38)
LOG_RECORD_DETAIL objn - 233219
LOG_RECORD_IDCARD objn - 234119,
session 2078 先锁住了 LOG_RECORD_IDCARD ,之后尝试锁LOG_RECORD_DETAIL
session 1223 先锁住了 LOG_RECORD_DETAIL ,之后尝试锁 LOG_RECORD_IDCARD
session 2078的SQL执行顺序:
1、 SELECT D.FIRST_LOGIN_TIME, D.ONLINE_SECOND_TOTAL, D.OFFLINE_SECOND_TOTAL, D.USER_COUNT FROM LOG_RECORD_IDCARD D WHERE GAME_ID = :B2 AND ID_CODE = :B1 FOR UPDATE
2、 UPDATE LOG_RECORD_DETAIL SET LOGOUT_TIME = :B1 , ROLE_LEVEL = :B6 , MONEY1 = :B5 , MONEY2 = :B4 , EXPERIENCE = :B3 WHERE LOGIN_ID = :B2 RETURNING SERVER_ID, (:B1 - LOGIN_TIME) * 86400, LOGIN_IP, PROVINCE_CODE, CITY_CODE INTO :O0 ,:O1 ,:O2 ,:O3 ,:O4
session 1223:
1、UPDATE LOG_RECORD_DETAIL SET LOGOUT_TIME = :B1 , ROLE_LEVEL = :B6 , MONEY1 = :B5 , MONEY2 = :B4 , EXPERIENCE = :B3 WHERE LOGIN_ID = :B2 RETURNING SERVER_ID, (:B1 - LOGIN_TIME) * 86400, LOGIN_IP, PROVINCE_CODE, CITY_CODE INTO :O0 ,:O1 ,:O2 ,:O3 ,:O4
2、SELECT D.FIRST_LOGIN_TIME, D.ONLINE_SECOND_TOTAL, D.OFFLINE_SECOND_TOTAL, D.USER_COUNT FROM LOG_RECORD_IDCARD D WHERE GAME_ID = :B2 AND ID_CODE = :B1 FOR UPDATE
|
|