Posts
All the articles I've posted.
堆栈
Posted on:May 24, 2021 at 12:20 PM在x86_64中,调用栈是从高地址到低地址增长的, `%rbp`寄存器有两个核心的内容: - `0(%rbp)`也就是`%rbp`寄存器指向的寄存器内容,这个指针指向的地址也存着上一个堆栈的`%r
vxlan
Posted on:May 21, 2021 at 08:48 AMvxlan 是一个3层协议上加上2层协议的协议 由vetp解析出上面2层协议的报文 - https://www.rfc-editor.org/rfc/pdfrfc/rfc7348.txt.pdf
mysql binlog获取
Posted on:May 11, 2021 at 12:44 PM## mysql 报文: mysql报文分为两部分:`header`和`payload` ### header 有四个字节,其中前三个字节是标识这个包的长度描述`payload`的长度,也就是
c字节对齐
Posted on:May 11, 2021 at 10:34 AM``` _attribute_((packed)) ``` 你会在redis的`sds.h`看到这个gcc的扩展属性,这个属性是拿来干嘛呢?其实是拿来压缩字段长度的 ``` This attrib
mysql主从
Posted on:April 14, 2021 at 01:47 PM``` DBUG_PRINT("info", ("Creating new slave thread")); if (mysql_thread_create(thread_key, &th,
c99柔性数组
Posted on:April 14, 2021 at 09:39 AMAs a special case, the last element of a structure with more than one named member may have an inc
20210413反思过去
Posted on:April 13, 2021 at 04:46 PM突然间不想写这些业务代码了,就是那么突然.我已经快工作四年了,毫无进展,什么都不会 这几年我究竟做了什么? 给PHP修了两个内存泄漏,相对于写业务,我更喜欢修bug 引入了canal,对bi
canal需要注意的点
Posted on:April 2, 2021 at 11:48 AM## 比较坑的点: 1 每次同步的内容会每秒持久化到file或者zk ,binlog一般只保留的几天,如果你持久化到文件/zk的配置的binlog文件在mysql已经不存在了会报错, 报错信息大概如
tcp协议
Posted on:April 1, 2021 at 09:28 AM## 状态机 ``` +---------+ ---------\ active OPEN
跳表
Posted on:March 31, 2021 at 10:48 AM## 相关阅读 - Skip Lists: A Probabilistic Alternative to Balanced Trees https://15721.courses.cs.cmu.e