linweiway67 2014-09-01 07:16 采纳率: 0%
浏览 995

关于mysql redo log的问题。

http://bugs.mysql.com/bug.php?id=73202
上面是一个官方的patch,
According to the crash recovery logic of mysql server, we only need to write/sync prepared transaction before writing to binlog. And currently transactions are not grouped during innodb prepare stage.

I changed the related code described as bellow:

  1. don’t sync redo log during innodb prepare stage if binlog enabled.

  2. during flush stage of group commit (In function process_flush_stage_queue)
    a) collect group commit queue

b) call ha_flush_logs to sync redo log (make sure all redo log of prepared transaction in current
queue were synced before writing to binlog)
--innobase_flush_logs have to be changed.

c) flush thread cache to binlog file for every thd in queue

这段话我并不是很明白其中的意思,跪求mysql达人指点,我要的不是直接的翻译,而是要解释一下这段话在说明一个什么问题。

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥40 复杂的限制性的商函数处理
    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码