在数据库的latch底层部分, 没有死锁检测,那么当发生死锁时(虽然上层的Lock在逻辑层面避免了,但有的时候涉及到页分裂等操作或者 方向冲突(比如 update id>1 和…
- User
在数据库的latch底层部分, 没有死锁检测,那么当发生死锁时(虽然上层的Lock在逻辑层面避免了,但有的时候涉及到页分裂等操作或者 方向冲突(比如 update id>1 和 update <100从树的两个方向逆向加锁造成冲突) 此时某一个latch可能在短暂自旋后 自裁 (比如短时间的 tryCatch发现还是获取不到) 此时整个事务会回滚重试吗? (因为latch在自裁之前已经更新了很多) ,这些已经更新的部分怎么处理
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.