mortonnex
V2EX  ›  问与答

MySQL 的 redo 日志问题

  •  
  •   mortonnex · Jan 6, 2019 · 1607 views
    This topic created in 2859 days ago, the information mentioned may be changed or developed.
    如果事务回滚,会删除 redo 日志中已写入的内容吗?

    搜了好多文章都没对这个问题有回答,所以求教大佬们
    5 replies  •  2019-01-07 10:17:49 +08:00
    SingeeKing
    SingeeKing
    Jan 6, 2019
    1
    当然……
    id4alex
    id4alex
    Jan 6, 2019
    2
    我觉得不会删除, 没有 commit 而已.
    Dragonish3600
    Dragonish3600
    Jan 6, 2019 via iPhone
    3
    不会删除,log 是 log ……
    id4alex
    id4alex
    Jan 6, 2019
    4
    我估计 LZ 是想问 如何通过日志保证数据回滚到事务提交之前的状态. 这个是 savepoint + undo log 来保证这个事情
    julyclyde
    julyclyde
    Jan 7, 2019
    5
    首先纠正一点:
    不是 mysql 的 redo 日志,而是 innodb 的 redo 日志
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1554 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 23:03 · PVG 07:03 · LAX 15:03 · JFK 18:03
    ♥ Do have faith in what you're doing.