当前位置:网站首页>Tell you about mvcc
Tell you about mvcc
2022-06-24 03:48:00 【InfoQ】
/* Precise data types for system columns and the length of those columns;
NOTE: the values must run from 0 up in the order given! All codes must
be less than 256 */
#define DATA_ROW_ID 0 /* row id: a 48-bit integer */
#define DATA_ROW_ID_LEN 6 /* stored length for row id */
/** Transaction id: 6 bytes */
constexpr size_t DATA_TRX_ID = 1;
/** Transaction ID type size in bytes. */
constexpr size_t DATA_TRX_ID_LEN = 6;
/** Rollback data pointer: 7 bytes */
constexpr size_t DATA_ROLL_PTR = 2;
/** Rollback data pointer type size in bytes. */
constexpr size_t DATA_ROLL_PTR_LEN = 7;
DATA_ROW_IDDATA_TRX_IDDATA_ROLL_PTRDATA_TRX_IDRead UncommittedRead Committedread viewm_low_limit_idm_up_limit_idm_idsm_creator_trx_id This is the creation transaction of the current record id- When recorded transactions
idLess than the minimum active transaction id, The description is visible ,
- If the recorded transaction
idEqual to the current transaction id, The description is your own change , so
- If the recorded transaction
idGreater than the largest active transactionid, invisible
- If the recorded transaction
idBe situated betweenm_low_limit_idandm_up_limit_idBetween , It is necessary to judge whether it ism_idsin , If in , invisible , If not , Indicates that... Has been submitted , See the specificCodeTake a look
/** Check whether the changes by id are visible.
@param[in] id transaction id to check against the view
@param[in] name table name
@return whether the view sees the modifications of id. */
bool changes_visible(trx_id_t id, const table_name_t &name) const
MY_ATTRIBUTE((warn_unused_result)) {
ut_ad(id > 0);
if (id < m_up_limit_id || id == m_creator_trx_id) {
return (true);
}
check_trx_id_sanity(id, name);
if (id >= m_low_limit_id) {
return (false);
} else if (m_ids.empty()) {
return (true);
}
const ids_t::value_type *p = m_ids.data();
return (!std::binary_search(p, p + m_ids.size(), id));
}
Read CommittedRepeated Readread viewread viewread viewselectselect边栏推荐
- 2021-10-02: word search. Given an M x n two-dimensional character grid boa
- Modstartcms theme introductory development tutorial
- Pits encountered in refactoring code (1)
- Common content of pine script script
- Web penetration test - 5. Brute force cracking vulnerability - (2) SNMP password cracking
- Use lightweight application server to automatically download and upload to onedrive
- Black hat SEO practice: General 301 weight PR hijacking
- Cross platform RDP protocol, RDP like protocol and non RDP protocol remote software
- Why install code signing certificate to scan and eliminate virus software from security
- 元气森林推“有矿”,农夫山泉们跟着“卷”?
猜你喜欢

ModStartCMS 主题入门开发教程

Black hat SEO actual combat directory wheel chain generates millions of pages in batch

Old popup explorer Exe has stopped working due to problems. What should I do?
![[Numpy] Numpy对于NaN值的判断](/img/aa/dc75a86bbb9f5a235b1baf5f3495ff.png)
[Numpy] Numpy对于NaN值的判断

在pycharm中pytorch的安装

Ar 3D map technology

Modstartcms enterprise content site building system (supporting laravel9) v4.2.0

SQL注入绕过安全狗思路一

Installation of pytorch in pycharm

浅谈游戏安全 (一)
随机推荐
On game safety (I)
Gaussian beam and its matlab simulation
Psexec right raising
Does the user need a code signing certificate? What is the use of a code signing certificate
Rasa 3. X learning series -rasa 3.2.0 new release
JVM调优简要思想及简单案例-怎么调优
Record a programming contest
Web penetration test - 5. Brute force cracking vulnerability - (4) telnet password cracking
An open source monitoring data collector that can monitor everything
黑帽实战SEO之永不被发现的劫持
Interpreting Tencent cloud product experience through user experience elements
4. go deep into tidb: detailed explanation of the implementation process of the implementation plan
What should I pay attention to when choosing a data center?
The importance of the computer room to the stable operation of the server
web渗透测试----5、暴力破解漏洞--(1)SSH密码破解
黑帽SEO实战之通用301权重pr劫持
How to choose excellent server hosting or server leasing in Beijing
Troubleshooting and resolution of errors in easycvr calling batch deletion interface
Yuanqi forest pushes "youkuang", and farmers' mountain springs follow the "roll"?
Ar 3D map technology