当前位置:网站首页>MYSQL二阶段提交
MYSQL二阶段提交
2022-08-01 00:16:00 【三月不灭】
MYSQL二阶段提交
binlog,redolog都会记录数据,当记录数据时是先写binlog,还是redolog,不管先写redolog还是binlog都会出现问题,两个文件要保证要么都写要么都不写。如果写完redolog没有写binlog的时候可能会造成数据不一致
binlog和redolog都会同时记录数据,那么他么记录的顺序是什么样的?
执行流程:
1、执行器先从引擎中找到数据,如果在内存中直接返回,如果不在内存中,查询后返回
2、执行器拿到数据之后会先修改数据,然后调用引擎接口重新写入数据
3、.引擎将数据更新到内存,同时写数据到redo中,此时处于prepare阶段,并通知执行器执行完成,随时可以操作
4、执行器生成这个操作的binlog
5、执行器调用引擎的事务提交接口,引擎把刚刚写完的redo改成commit状态,更新完成
二阶段提交

边栏推荐
- 简单的vim配置
- Nmap 操作手册 - 完整版
- IPD流程专业术语
- 力扣二叉树
- Matlab / ArcGIS 处理GPM全球月均降水数据
- 消息队列存储消息数据的MySQL表格
- vim的基本使用概念
- Team of Professor Chen Jianyu of Tsinghua University | Contact Safety Reinforcement Learning Framework Based on Contact-rich Robot Operation
- pycaret源码分析:下载数据集\Lib\site-packages\pycaret\datasets.py
- Carefully organize 16 MySQL usage specifications to reduce problems by 80% and recommend sharing with the team
猜你喜欢
![[1161. The maximum sum of elements in the layer]](/img/59/7810f425431779aa719458038ea0b3.png)
[1161. The maximum sum of elements in the layer]

精心总结十三条建议,帮你创建更合适的MySQL索引

SVN server construction + SVN client + TeamCity integrated environment construction + VS2019 development

/etc/sysconfig/network-scripts 配置网卡

Network security - crack WiFi through handshake packets (detailed tutorial)

TFC CTF 2022 WEB Diamand WriteUp

2022年最新重庆建筑八大员(电气施工员)模拟题库及答案

如何设计高可用高性能中间件 - 作业

Advanced Algebra _ Proof _ Any matrix is similar to an upper triangular matrix

微信小程序之小程序页面语法
随机推荐
Compose原理-视图和数据双向绑定的原理
thymeleaf iterates the map collection
Web API 介绍和类型
精心总结十三条建议,帮你创建更合适的MySQL索引
Matlab / ArcGIS 处理GPM全球月均降水数据
精心总结十三条建议,帮你创建更合适的MySQL索引
命名实体识别-模型:BERT-MRC
MLP神经网络,GRNN神经网络,SVM神经网络以及深度学习神经网络对比识别人体健康非健康数据
Interview Question: Implementing Deadlocks
【Acwing】The 62nd Weekly Game Solution
lua入门案例实战123DIY
zeno使用方法笔记
Thinking and Implementation of Object Cache Service
一文带你了解 Grafana 最新开源项目 Mimir 的前世今生
Likou Binary Tree
Basic use of vim - bottom line mode
新产品如何进行网络推广?
/etc/resolv.conf的作用
Flink 1.13(八)CDC
对象缓存服务的思考和实现