Liu Jicong
50729f0cc4
refactor: remove assert
2022-12-21 14:16:28 +08:00
Shengliang Guan
6d94afe48f
Revert "refact: adjust some assert cases"
2022-12-07 21:51:17 +08:00
Shengliang Guan
d5126d469a
refact: replcase ASSERT with tAssert
2022-12-07 18:42:48 +08:00
Liu Jicong
a16b010e9f
fix: memory leak
2022-10-26 11:35:15 +08:00
Benguang Zhao
7fb827debd
fix: refactor walScanLogGetLastVer, walCheckAndRepairMeta, and walCheckAndRepairIdx.
...
* search for the last entry in the contiguous range of valid WAL from the last pos fsynced as firstTrial
* find the last entry before the last pos fsynced backwards as second trial
* reserve sufficient space for computing CRC32 checksum, esp. of WAL record body
* rebuild meta info to resolve potential misalignment between lists of meta and actual log files
* retract commitIndex and appliedIndex to lastLogIndex if needed
* put an upper size limit on possibly corrupted WAL range to be recovered
2022-10-15 23:56:31 +08:00
Liu Jicong
f0f4748320
fix(util): concurrently hash iterate
2022-08-05 16:14:19 +08:00
Liu Jicong
0b8e9af8ec
refactor(wal)
2022-07-26 13:33:26 +08:00
Liu Jicong
c6052fadba
feat(wal): add append interface
2022-07-11 16:22:51 +08:00
Liu Jicong
a8831af513
fix(wal): int overflow
2022-05-12 22:40:32 +08:00
afwerar
c11946fd75
[TD-13756]<fix>: Fix macro name error.
2022-04-11 18:55:43 +08:00
Liu Jicong
e0f192046c
multiple level stream schedule
2022-03-28 11:47:39 +08:00
Shengliang Guan
68f3de6111
remove tfile
2022-02-28 13:49:38 +08:00
afwerar
dbb8cfceaf
[TD-13062]<fix>: file system judge pointer error.
2022-02-25 18:07:30 +08:00
afwerar
5a37fdf28f
[TD-13062]<fix>: cross platform file system.
2022-02-25 01:47:20 +08:00
Liu Jicong
47f1558e7c
add wal handle meta corrupt
2022-01-11 15:40:10 +08:00
Liu Jicong
0ba5427a9b
handle subscribe
2022-01-06 10:28:34 +08:00
Liu Jicong
d037b24e05
refactor wal
2021-12-17 13:40:27 +08:00
Liu Jicong
dfc8c4e0b7
format code
2021-12-16 15:04:13 +08:00
Liu Jicong
3d141cf109
refactor wal and tq
2021-12-15 17:17:50 +08:00
Liu Jicong
5874463cb1
refactor wal
2021-12-14 18:14:45 +08:00
Liu Jicong
dc24592929
add wal read handle
2021-12-13 18:33:30 +08:00
Liu Jicong
9e4b890727
add test for wal snapshot
2021-12-11 17:18:18 +08:00