日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

Mysql 内部结构 / Replication | 层次结构

發布時間:2025/3/20 数据库 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Mysql 内部结构 / Replication | 层次结构 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

2019獨角獸企業重金招聘Python工程師標準>>>

19.1?Chapter Organization

We distinguish between two levels of the architecture:?principles, and?rules:

principle

High-level goal that declares how the program shall work, from an external point of view. Principles do not discuss how the code works. An example of a principle is "no row events shall be written to the binlog if binlog_format=statement".

rule

Defines how to implement the principles. Rules can be formulated on a very high level, but they describe implementation (how the code works from the inside) rather than interface (how the program behaves when looking from the outside). An example of a rule is "at ROLLBACK when the transaction cache only contains updates to transactional tables, clear the transaction cache and do not write to the binlog".

In the next section, we list the source code files used by replication and describe what each file contains. The section after describes the replication principles and the following section describes the replication rules. The last section contains very old, obsolete documentation. It will be removed after we have verified that anything useful has been transferred to the main sections.


我們區分兩個層次結構之間:?原理??和?規則:

原理

從外部來看,作為高層次的標準聲明該程序應是如何工作的。原則不討論該代碼是如何工作的。例如某原理的定義是“如果binlog_format =statement,行格式就不應該被寫入二進制日志(注意這里的row event指的是binlog_format=row的情況下,binlog里面的event,這個event是binlog二進制里面定義的)”。

規則

定義如何實施的原理。規則可以在一個非常高的水平上制定,但它們描述的如何實現(從代碼上看內如何工作的),而不是接口(程序從外面看時如何運行)。規則的一個例子是“當ROLLBACK時,事務緩存包含更新事務表內容,會被清除事務緩存并且不寫入二進制日志”。

在下一節中,我們列出了復制使用的源代碼文件,并說明每個文件內容。節后介紹復制原理及以下部分介紹復制規則。最后一節包含了很老的,過時的文檔。經過我們驗證了什么有用的東西已經轉移到主要部分將被刪除。

轉載于:https://my.oschina.net/u/778602/blog/716361

總結

以上是生活随笔為你收集整理的Mysql 内部结构 / Replication | 层次结构的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。