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
finley
febb83cb5c
improve replication; support partial sync
2022-11-18 21:37:34 +08:00
finley
32a9667eb6
refactor syncWithMaster
2022-11-08 23:30:43 +08:00
finley
635c9dd740
rename dump rdb
2022-11-05 21:18:58 +08:00
finley
894be52c31
bug fix: null bulk reply bytes
2022-10-02 15:50:14 +08:00
finley
dddf9a8f6b
zpopmin
2022-08-21 06:00:21 +08:00
finley
9da335811f
tiny fixes
2022-08-20 23:25:26 +08:00
finley
e6d958716d
quick list
2022-07-31 02:07:45 +08:00
finley
ab0754e2a5
refactor flush db
2022-07-11 18:42:20 +08:00
finley
98f986a363
use regex implementing wildcard
2022-07-08 23:48:42 +08:00
finley
47ec67c4dc
update comments
2022-07-03 18:03:30 +08:00
hdt3213
380d936ed5
replication slave side
2022-07-02 11:45:56 +08:00
Eriri
f327000d3a
Feat:Add "copy" command
...
Add "copy" command,also fixes the out of range error of select when the number is negative.
Move execCopy to "keys.go" ,
Add test in "keys_test.go",
Add "copy.go" and "copy_test.go" file.
2022-06-26 15:45:09 +08:00
Lu JJ
7a9cbb7c11
Convert GETSET to SET command to write AOF
2022-06-13 10:23:18 +08:00
Eriri
4682f254f2
Convert to "del" to write aof instead of "getdel"
2022-06-12 08:35:27 +08:00
Eriri
f3274fd8c8
Feat: Add "GetEX" and "GetDel" Commands
2022-06-12 08:35:27 +08:00