V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
mortonnex
V2EX  ›  问与答

MySQL 的 redo 日志问题

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

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