pt-archiver不会迁移max(id)那条数据的问题
To be is to be perceived.
- 现象描述
pt-archiver
迁移数据时,发现原表中总会留有一条数据,即max(id)那条数据,修正方案如下。
pt-archiver
源码
1 | if ( $o->get('safe-auto-increment') |
第 6348 行改为小于等于
1 | 6339 if ( $o->get('safe-auto-increment') |
Reference
- Title: pt-archiver不会迁移max(id)那条数据的问题
- Author: 严少安
- Created at: 2018-02-23 21:31:01
- Updated at: 2018-02-23 21:31:01
- Link: https://shawnyan.cn/2018/mysql/pt-archiver-maxid/
- License: This work is licensed under CC BY-NC-SA 4.0.
if (hexo-config('comment.enable') == true && hexo-config('comment.system') != "") {
if (hexo-config('comment.system') == "waline") {
@require "./waline.styl"
} else if (hexo-config('comment.system') == "gitalk") {
@require "./gitalk.styl"
} else if (hexo-config('comment.system') == "twikoo") {
@require "./twikoo.styl"
}
}
.comments-container
display inline-block
margin-top $spacing-unit
width 100%
#comment-anchor
width 100%
height 10px
.comment-area-title
width 100%
margin 10px 0
font-size 1.38rem
color var(--default-text-color)
font-family 'Consolas', '宋体', sans-serif
font-weight bold
i
color var(--default-text-color)
+redefine-tablet()
margin 5px 0
font-size 1.2rem