Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checkpoint ¶
Checkpoint 把 WAL 中的改动全部并回主库文件并截断 WAL。 备份、导入、迁移之后必须调用:否则单独复制 .db 文件会丢失尚在 WAL 中的数据。
func CheckpointPassive ¶ added in v0.6.8
CheckpointPassive 不阻塞任何读写的检查点:定时循环用它,把 WAL 能并回去的并回去就行。 TRUNCATE 要等所有读写让路、还要把主库 fsync 一遍,盘慢时面板会跟着卡几秒;那只留给备份和停机。
Types ¶
Click to show internal directories.
Click to hide internal directories.