Commit Graph

81 Commits

Author SHA1 Message Date
finley
43dc28d335 WIP 2025-03-13 23:10:11 +08:00
finley
67a46bf432 fix test suite 2025-02-03 19:05:57 +08:00
finley
e0e29729e4 fix test suite 2025-02-03 18:57:33 +08:00
finley
b699918223 raft cluster core 2025-02-03 18:38:47 +08:00
lhpqaq
75030407cb Add sscan, hscan, zscan 2024-07-29 13:59:18 +08:00
lhpqaq
c1dd65d84f add scan command 2024-07-19 13:21:59 +08:00
bijingrui
0c6b0863f3 add dbsize command 2024-05-06 16:39:28 +08:00
NaNShaner
dd073b0645 bugfix: Fix the issue with the result format returned by the randomkey command 2024-05-04 16:28:15 +08:00
xuning
b6763a86fe bugfix: Use rounding to calculate TTL
The previous code calculated TTL directly by int64 / time.Second or int64 / time.Millisecond, which could result in a calculation error of up to 1s/1ms. Now, using math.Round ensures that TTL is rounded to the nearest whole second/millisecond, improving the accuracy of the calculation.
2024-03-26 10:41:51 +08:00
Allen.zhang
3d53ba2d1d Update sortedset_test.go delete line of useless
there is a useless line in func TestRangeByScore
2023-07-29 15:50:04 +08:00
finley
164a0dfa05 fix TestExpireAt 2023-07-29 15:49:36 +08:00
guoguangwu
2a0d96b8c3 chore: use t.Errorf(...) instead of t.Error(fmt.Sprintf(...)) 2023-07-15 15:24:01 +08:00
Allen
8873975901 Update set_test.go fix a little error
I wonder that this was an little mistake because exec key1 for 2 times doesn't reach the purpose of test sinter here
2023-07-15 15:19:28 +08:00
finley
1a3b32d2d2 remove decimal requirement 2023-06-20 22:22:18 +08:00
finley
7e63969360 bug fix: filter expired key in command keys 2023-06-20 07:26:47 +08:00
damonslh
96a37cc7cb add zlexcount, zremrangebylex, zrankbylex, zrevrankbylex to zset 2023-06-15 20:55:15 +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
finley
1f148aa807 bug fix: fix a rdb encoder error of int string 2023-06-10 21:16:46 +08:00
bijingrui
3b9c4238fb Add the keyspace section of the info command 2023-05-28 22:22:13 +08:00
damonslh
7eaaf919f4 add ltrim command and linsert comnand to list 2023-05-28 20:49:06 +08:00
finley
c7dda00118 bugfix: execCommand 2023-05-20 16:20:44 +08:00
Eriri
edfbe75dfd fix some typos in replication_master.go 2023-05-12 11:37:28 +08:00
finley
bd418bd82b bug fix: loadRdb forget to load set data struct 2023-05-08 23:41:10 +08:00
finley
a266cc5aba optimize set inter,union,diff 2023-05-08 23:41:10 +08:00
Eriri
388fdabd7f Modify the implementation of database RWLocks and RWUnLocks 2023-05-08 22:15:49 +08:00
hdt3213
68d7f28b1a refactor command command 2023-05-04 23:04:12 +08:00
xing-you-ji
1e767b6797 add aof-use-rdb-preamble 2023-04-29 20:49:42 +08:00
suger-no
25bbd82da5 support Command command 2023-04-25 20:10:19 +08:00
suger-no
a3326d2bba bug fix:RewriteAof will panic if appendonly property is no 2023-04-25 20:10:19 +08:00
bijingrui
6103ca01c0 Add randomkey command 2023-04-10 08:02:27 +08:00
bijingrui
d0a7a215ba Add info command 2023-04-08 16:08:39 +08:00
no sugar
11c0385241 bug fix: FlushDB command is not recorded by AOF (#142)
* bug fix: FlushDB command is not recorded by AOF

* bug fix: Fix an error occurred while rewriting aof rename, windows.ERROR_SHARING_VIOLATION

* bug fix: Fix an error occurred while rewriting aof rename, windows.ERROR_SHARING_VIOLATION

* change the flushDB procedures

* The savecmdline flushdb in the method is incorrectly selected, causing the testof error
2023-03-19 17:36:56 +08:00
finley
2bf829af1a optimize code style 2023-03-19 16:36:03 +08:00
finley
c96b0bf5a0 optimize code style 2023-03-19 16:19:25 +08:00
bjr
d7f6420f69 Add info command (#141)
* Generate a new runid for each start of godis

* Add info command

* Add info command

* Generate a new runid for each start of godis

* Add unittests for the info command
2023-03-19 16:17:40 +08:00
Allen
3e6d2090c5 fix list_test.go func[TestPush] an unexpected line code made the test went wrong
merged into single commit
2023-03-19 13:41:24 +08:00
finley
48a146cb08 bug fix: unlock master status when no slaves 2023-03-14 01:14:35 +08:00
Allen
382fabb538 fix: string.go execSetBit did not record aof log 2023-03-07 22:12:40 +08:00
finley
7f6edf817e fix tiny bugs 2023-02-20 22:43:45 +08:00
li
d77f08c140 ADD EXPIRETIME and EXPIRETIME command 2023-02-15 09:22:03 +08:00
finley
df672d4c92 direct call for FsyncAlways 2022-12-26 08:50:05 +08:00
finley
d399353394 add AppendFsync 2022-12-25 22:50:57 +08:00
finley
8089b357e4 rename Persister receiver 2022-12-25 21:34:07 +08:00
finley
53b6b726f5 rename MultiDB to Server; rename AofHandler to Persister 2022-12-25 21:24:55 +08:00
finley
a6d07ce5df bug fix: stopMaster 2022-12-21 16:55:12 +08:00
finley
0d96ad295d re-generate aof file during load database from replication master; Allow master-slave role switching 2022-12-20 23:05:07 +08:00
finley
a5908f5ea4 rewrite backlog 2022-12-05 22:00:01 +08:00
finley
ba7ea942cb replication master side 2022-11-30 21:22:03 +08:00
Tianyi Zheng
a7a3da6e49 perf: pooled connection`s instantiation
- pooled connection: reduce the pressure on the GC to process heap memory objects with high concurrent "connection"
2022-11-27 19:39:09 +08:00