Minghao Li
856806bb22
refactor(sync): add snapshot2 interface
2022-07-04 13:33:49 +08:00
Minghao Li
41f24314d0
refactor(sync): add SYNC_TERM_INVALID
2022-06-29 15:44:30 +08:00
Minghao Li
18b78f2450
refactor(sync): add return code restore from snapshot
2022-06-29 14:50:59 +08:00
Minghao Li
4bd650609d
refactor(sync): delete old functions
2022-06-29 14:02:40 +08:00
Minghao Li
a22814a5a7
refactor(sync): optimized one replica
2022-06-27 10:36:28 +08:00
Minghao Li
3d9ffc42e8
refactor(sync): refactor wal abstraction
2022-06-23 21:16:16 +08:00
Minghao Li
00c0926c44
refactor(sync): hold wal handle with log store
2022-06-23 14:58:52 +08:00
Minghao Li
ca4d7329ce
refactor(sync): modify wal error log
2022-06-23 14:07:18 +08:00
Minghao Li
81eae2a9af
refactor(sync): modify wal error log
2022-06-23 11:59:28 +08:00
Minghao Li
2f2715aca4
fix(sync): save saveErr
2022-06-22 20:23:49 +08:00
Minghao Li
4381c3620d
refactor(sync): calculate index after append entry
2022-06-21 19:00:24 +08:00
Minghao Li
363c98e9ed
refactor(sync): abstract for log store
2022-06-21 17:45:08 +08:00
Minghao Li
ecc43b6697
refactor(sync): delete some assert
2022-06-21 16:02:36 +08:00
Minghao Li
b247762931
refactor(sync) refactor trace log
2022-06-18 15:17:58 +08:00
Shengliang Guan
43f8f34b0f
refactor: adjust logs
2022-06-17 14:24:17 +08:00
Minghao Li
f5db109e61
fix(sync): get last max snapshot index
2022-06-17 11:37:10 +08:00
Minghao Li
3fdd0c30ac
refactor(sync): add trace log
2022-06-16 19:08:44 +08:00
Minghao Li
15ac89590c
refactor(sync): add trace log
2022-06-16 17:41:01 +08:00
Minghao Li
9a9200d28b
refactor(sync): add restore finish when become leader again
2022-06-16 15:38:40 +08:00
Minghao Li
77b03ac821
refactor(sync): add restore finish when become leader again
2022-06-16 14:40:42 +08:00
Minghao Li
6a4cdadef6
refactor(sync): add debug log
2022-06-11 21:56:44 +08:00
Minghao Li
6586f78599
refactor(sync): add last config index
2022-06-11 12:44:58 +08:00
Minghao Li
736862541e
fix(sync): restart with config change
2022-06-10 15:19:11 +08:00
Minghao Li
b351fd8261
refactor(sync): add log
2022-06-10 13:15:43 +08:00
Minghao Li
ee32302101
refactor(sync): add detail log flag
2022-06-09 14:14:45 +08:00
Minghao Li
d81f5e9f77
fix(sync): add detail log flag
2022-06-09 11:18:48 +08:00
Minghao Li
d72d2d698c
refactor(sync): SyncAppendEntries
2022-06-08 17:44:32 +08:00
Minghao Li
39d0b652ba
refactor(sync): add raft log test
2022-06-08 17:18:26 +08:00
Minghao Li
687caac2bf
refactor(sync): add raft log test
2022-06-08 16:45:40 +08:00
Minghao Li
2547e8d02e
refactor: sync index
2022-06-08 11:03:28 +08:00
Shengliang Guan
4e99992cff
fix: change quorum on sync reconfig successed
2022-06-07 18:00:50 +08:00
Shengliang Guan
a047d4a559
Merge remote-tracking branch 'origin/feature/sync-refactor' into fix/mnode
2022-06-07 16:37:50 +08:00
Minghao Li
8680da282a
fix(sync): snapshot maybe change when sending
2022-06-07 15:36:41 +08:00
Minghao Li
2071c5a74e
fix(sync): sending snapshot
2022-06-06 20:02:27 +08:00
Minghao Li
84a67e850e
fix(sync): sending snapshot
2022-06-06 17:23:59 +08:00
Minghao Li
5009b7822f
enh(sync): add log index manager
2022-06-06 11:24:25 +08:00
Minghao Li
2adc0b8a76
enh(sync): add log index manager
2022-06-05 21:48:50 +08:00
Minghao Li
5908631ec3
enh(sync): add log store2
2022-06-05 19:47:54 +08:00
Shengliang Guan
30da7560f8
Merge remote-tracking branch 'origin/3.0' into fix/mnode
2022-06-04 11:50:47 +08:00
Minghao Li
44994201b6
fix(sync): sending snapshot
2022-06-02 19:47:06 +08:00
Minghao Li
ac90f61b63
fix(sync): wal write from middle
2022-06-02 13:53:19 +08:00
Cary Xu
f2b4cca23d
fix: init buffer to avoid invalid write
2022-05-29 01:10:32 +08:00
Minghao Li
3a1be0c58a
refactor: make logStore static
2022-05-27 18:00:09 +08:00
Minghao Li
5a754023f5
refactor: make logStore static
2022-05-27 16:36:44 +08:00
Minghao Li
5471792549
refactor: make logStoreGetLastEntry static
2022-05-27 16:13:02 +08:00
Minghao Li
a2d43fb96f
enh(sync): add syncStartStandBy
2022-05-14 18:12:53 +08:00
Minghao Li
453d105a08
enh(sync): add error log, linux api error, %X
2022-05-12 07:54:45 +08:00
Minghao Li
7c41d52967
enh(sync): add error log, linux api error
2022-05-11 15:52:31 +08:00
Minghao Li
503de649cb
enh(sync): add error log
2022-05-10 12:22:57 +08:00
Minghao Li
8c0d600cdf
enh(sync): add error log
2022-05-10 12:20:13 +08:00
Minghao Li
d75b3568a7
enh(sync): add trace log
2022-05-06 23:40:34 +08:00
Liu Jicong
3d972f81a2
refacor(wal): rename len to bodyLen
2022-04-24 13:42:54 +08:00
Minghao Li
7066274cc7
add sync format code
2022-04-18 21:50:56 +08:00
afwerar
222db126bc
[TD-13758]<fix>: redefine memory api.
2022-03-26 00:29:53 +08:00
Minghao Li
83ecb8dd30
sync refactor
2022-03-24 19:40:37 +08:00
Minghao Li
61f227816d
sync refactor
2022-03-24 18:41:20 +08:00
Minghao Li
b3ec7c8261
sync refactor
2022-03-24 17:30:50 +08:00
Minghao Li
e58812aab5
sync refactor
2022-03-24 11:40:36 +08:00
Minghao Li
996886e726
sync refactor
2022-03-23 17:08:07 +08:00
Minghao Li
acea32ed41
sync refactor
2022-03-16 20:17:32 +08:00
Minghao Li
fda9803c17
sync refactor
2022-03-16 20:03:22 +08:00
Shuduo Sang
3c6c518470
[TD-13063]<feature>: 3.0 on windows ( #10765 )
...
* [TD-13063]<feature>: 3.0 on Windows
* add pthread in contrib
* fix linux compile
* fix osSemaphore
* add gnu regex for Windows
* fix compile error for Windows
* support arm platform
* port more OS files
* fix for Windows compile
* port more files
* fix macOS on x86_64
* port osFile
* port osSemaphone.h
* port osSocket.c
* port tconfig.c
* port ttimer.c
* add couple files
* merge with 3.0
2022-03-16 11:37:31 +08:00
Minghao Li
b5b1417a8b
sync append entries (sync-io)
2022-03-16 10:54:06 +08:00
Minghao Li
1a78917767
sync index
2022-03-14 14:05:40 +08:00
Minghao Li
73d768d273
sync refactor
2022-03-10 16:54:26 +08:00
Minghao Li
889d1339e5
sync refactor
2022-03-10 16:18:16 +08:00
Minghao Li
ebeb4bb7a6
sync refactor
2022-03-10 14:34:02 +08:00
Minghao Li
a51e576126
sync refactor
2022-03-10 11:21:04 +08:00
Minghao Li
30be9d3e31
sync refactor
2022-03-09 20:04:39 +08:00
Minghao Li
3dfb9bb022
sync refactor
2022-03-09 18:56:39 +08:00
Minghao Li
0c8f62f701
sync refactor
2022-03-09 14:51:02 +08:00
Minghao Li
cf0857e113
sync refactor
2022-03-07 16:59:16 +08:00
Minghao Li
b55cf2bc7e
add sync code
2022-02-27 02:24:50 +08:00
Minghao Li
e8780cebed
add sync code
2022-02-26 18:30:58 +08:00
Minghao Li
296d9abe2a
add sync code
2022-02-25 15:34:24 +08:00
Minghao Li
be375fa143
add sync code
2022-02-22 11:28:15 +08:00