Commit Graph

15 Commits

Author SHA1 Message Date
finley
b699918223 raft cluster core 2025-02-03 18:38:47 +08:00
lhpqaq
c1dd65d84f add scan command 2024-07-19 13:21:59 +08:00
GouJie
e4c9563776 Modify code comments 2024-02-14 20:55:33 +08:00
finley
74421ba3f2 Merge branch 'feat/raft'
# Conflicts:
#	cluster/cluster.go
#	cluster/router.go
#	config/config.go
#	database/database.go
#	database/server.go
2023-06-11 13:25:41 +08:00
finley
bf7f628810 raft cluster
wip: raft does not care about migrating

wip: optimize code

wip: raft election

wip

wip: fix raft leader missing log entries

wip

fix a dead lock

batch set slot route

wip: raft persist

wip

refactor cluster suite

remove relay

rename relay2

refactor: allow customizing client factory

test raft

refactor re-balance

avoid errors caused by inconsistent status on follower nodes during raft commits

test raft election
2023-06-10 22:48:24 +08:00
Eriri
388fdabd7f Modify the implementation of database RWLocks and RWUnLocks 2023-05-08 22:15:49 +08:00
finley
0e6d1ecf2e bug fix: concurrent dict for each 2023-03-07 08:08:21 +08:00
shining-brain
f255fac7fb addCount should only be executed when there is data insertion 2022-11-24 13:55:29 +08:00
Tianyi Zheng
672f0571ca refactor: fix variable names & remove unnecessary type conversion
- the name of the variable "shard" has been defined, and change variable "shard" `s name in the function to avoid the case of "Variable Shadowing"
- remove unnecessary type conversion "uint32(hashCode)"
2022-11-15 19:11:19 +08:00
zhengtianyi
fe07c8ce39 perf: shorten lock time & optimize map`s value type
- shorten the lock time of concurrent.go`s function "Put"
 - slightly optimize the value`s type of map concurrent.go`s function "RandomDistinctKeys" & avoid duplicate input the same map`s key

fix: uses the provided seed value to initialize the function rand, for fixing the generation of the same int in the case of multiple executions.

Limited ability, make it better~
2022-11-09 22:18:12 +08:00
hdt3213
38001a2d18 go lint 2021-11-08 23:24:43 +08:00
hdt3213
e91294bcf4 multi database 2021-09-05 18:57:02 +08:00
liyuxing
453fef5de1 ConcurrentDict Remove add decreaseCount 2021-07-01 13:27:52 +08:00
hdt3213
97d7b84276 go lint 2021-05-13 08:56:07 +08:00
hdt3213
f29298cc68 refactor project structure 2021-05-02 14:54:42 +08:00