当前位置:网站首页>MYSQL two-phase commit
MYSQL two-phase commit
2022-08-01 01:11:00 【March is immortal】
MYSQL two-phase commit
Binlog and redolog both record data. When recording data, whether to write binlog or redolog first, there will be problems whether redolog or binlog is written first. Both files must be written or not written.If the redolog is written and the binlog is not written, it may cause data inconsistency
Both binlog and redolog will record data at the same time, so what is the order of their records?
Execution process:
1. The executor first finds the data from the engine, if it returns directly in the memory, if it is not in the memory, it returns after the query
2. After the executor gets the data, it will first modify the data, and then call the engine interface to rewrite the data
3. The engine updates the data to the memory and writes the data to the redo at the same time. At this time, it is in the prepare stage and informs the executor that the execution is completed, and can be operated at any time.
4.The executor generates the binlog of this operation
5. The executor calls the transaction commit interface of the engine, the engine changes the redo that has just been written to the commit state, and the update is completed
Two Phase Commit

边栏推荐
- Notes on how to use zeno
- 机器学习初学者可以学哪些实战项目?
- Web API 介绍和类型
- You need to know the TCP wave four times
- MYSQL Index Analysis
- Rasa 3.x Study Series - Rasa - Issues 4898 Study Notes
- Kyoto University: Masaki Waga | Dynamic Masking for Reinforcement Learning in Black Box Environments
- 现代企业架构框架1
- RTL8762DK PWM (seven)
- ECCV2022 Workshop | 复杂环境中的多目标跟踪和分割
猜你喜欢
随机推荐
Classes and Objects: Medium
从零造键盘的键盘超级喜欢,IT人最爱
Google engineer fired for claiming AI awareness: breach of nondisclosure agreement
Flink 部署和提交job
RTL8762DK Lighting/LED (3)
LeetCode--打家劫舍问题
MYSQL-批量插入数据
Exam preparation plan
机器学习应该如何入门?
Unity3D study notes 10 - texture array
Web3.0:构建 NFT 市场(一)
Binary tree traversal non-recursive program -- using stack to simulate system stack
MYSQL Index Analysis
pycaret source code analysis: download dataset\Lib\site-packages\pycaret\datasets.py
虹科分享|如何用移动目标防御技术防范未知因素
Key Points Estimation and Point Instance
/usr/sbin/vmware-authdlauncher: error while loading shared libraries: libssl.so.1.0.2*Solution
date command
Kyoto University:Masaki Waga | 黑箱环境中强化学习的动态屏蔽
mySql data view









