当前位置:网站首页>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

边栏推荐
- WeChat applet page syntax
- leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
- 【元胞自动机】基于matlab界面聚合元胞自动机模拟【含Matlab源码 2004期】
- Application of integrated stepper motor in UAV automatic airport
- js 实现复制功能
- MYSQL逻辑架构
- 500 miles
- Rasa 3.x Study Series - Rasa - Issues 4918 Study Notes
- ROS2 series of knowledge (4): understand the concept of [service]
- Flink 部署和提交job
猜你喜欢

MYSQL经典面试题

现代企业架构框架1

Summary of MVCC

Modern Enterprise Architecture Framework 1

ECCV2022 Workshop | 复杂环境中的多目标跟踪和分割

pycaret source code analysis: download dataset\Lib\site-packages\pycaret\datasets.py

Southern University of Science and Technology: Xiaoying Tang | AADG: Automatic Enhancement for Generalization in the Field of Retinal Image Segmentation

RTL8762DK 使用DebugAnalyzer(四)

Four ways the Metaverse is changing the way humans work

Notes on how to use zeno
随机推荐
RTL8762DK Lighting/LED (3)
500 miles
Southern University of Science and Technology: Xiaoying Tang | AADG: Automatic Enhancement for Generalization in the Field of Retinal Image Segmentation
Classes and Objects: Medium
Binary tree traversal non-recursive program -- using stack to simulate system stack
Notes on how to use zeno
Force buckle 2326, 197
【元胞自动机】基于matlab界面聚合元胞自动机模拟【含Matlab源码 2004期】
js 实现复制功能
OSF understands the agile development model in one minute
July Bootcamp (Day 31) - Status Compression
C string array reverse
Modern Enterprise Architecture Framework 1
Web API Introduction and Types
欧拉系统(euleros):升级Mysql
Rasa 3.x Learning Series - Using Lookup Tables to Improve Entity Extraction
Item 36: Specify std::launch::async if asynchronicity is essential.
RTL8762DK 点灯/LED(三)
RTL8762DK PWM(七)
Automated machine learning pycaret: PyCaret Basic Auto Classification LightGBM