设为首页 加入收藏

TOP

MySQL 一致性读 深入研究(三)
2015-11-21 01:27:39 来源: 作者: 【 】 浏览:1
Tags:MySQL 一致性 深入 研究
dump开始处理 t2 表时,mysqldump 立马报错呢?
?
其原因就是 一致性读的胳膊拗不过DDL的大腿:
?
Consistent read does not work over certain DDL statements:(一致性读的胳膊拗不过DDL的大腿)
?
Consistent read does not work over DROP TABLE, because MySQL cannot use a table that has been dropped and InnoDB destroys the table.
?
Consistent read does not work over ALTER TABLE, because that statement makes a temporary copy of the original table and deletes the original table when the temporary copy is built. When you reissue a consistent read within a transaction, rows in the new table are not visible because those rows did not exist when the transaction's snapshot was taken. In this case, the transaction returns an error as of MySQL 5.6.6: ER_TABLE_DEF_CHANGED, “Table definition has changed, please retry transaction”.
?
原因:ALTER TABLE, DROP TABLE, RENAME TABLE, TRUNCATE TABLE 这些DDL语句的执行,会导致无法使用undo构造出正确的一致性读,一致性读和它们是无法隔离的。
首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MySQL分析服务器状态 下一篇MySQL死锁问题实例分析及解决方法

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: