当前位置:网站首页>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
边栏推荐
- Introduction to machine learning how to?
- Compose原理-视图和数据双向绑定的原理
- Binary tree traversal non-recursive program -- using stack to simulate system stack
- An open source and easy-to-use flowchart drawing tool drawio
- Matlab / ArcGIS 处理GPM全球月均降水数据
- YOLO怎么入门?怎么实现自己的训练集?
- VPGNet
- RTL8762DK WDG(六)
- Unity3D study notes 10 - texture array
- Detailed explanation of TCP protocol
猜你喜欢
STK8321 I2C (Shengjia-accelerometer) example
leetcode: 1562. Find latest grouping of size M [simulation + endpoint record + range merge]
In 2022, the latest eight Chongqing construction members (electrical construction workers) simulation question bank and answers
Google engineer fired for claiming AI awareness: breach of nondisclosure agreement
RTL8762DK 点灯/LED(三)
leetcode:1648. 销售价值减少的颜色球【二分找边界】
MVCC总结
VPGNet
谷歌『云开发者速查表』;清华3D人体数据集;商汤『通用视觉框架』公开课;Web3极简入门指南;高效深度学习免费书;前沿论文 | ShowMeAI资讯日报
两院院士直言:不要迷信院士
随机推荐
Key Points Estimation and Point Instance
Introduction to the decision logic of WAASAP WebClient UI page labels
YOLO怎么入门?怎么实现自己的训练集?
OSD读取SAP CRM One Order应用日志的优化方式
Application of integrated stepper motor in UAV automatic airport
Rainbow share | how to use moving targets defense technology to guard against the unknown
北京突然宣布,元宇宙重大消息
WebApi 打个Attribute 统一处理异常
Compose原理-视图和数据双向绑定的原理
网关gateway跨域
RTL8762DK RTC (5)
2022年最新重庆建筑八大员(电气施工员)模拟题库及答案
【 】 today in history: on July 31, "brains in vats" the birth of the participant;The father of wi-fi was born;USB 3.1 standard
欧拉系统(euleros):升级Mysql
两院院士直言:不要迷信院士
MYSQL事务
考研备考方案
zeno使用方法笔记
Rasa 3.x 学习系列- Rasa - Issues 4898 学习笔记
Rasa 3.x 学习系列- Rasa - Issues 4918 学习笔记