Commit Graph

50 Commits

Author SHA1 Message Date
bjr
2578cbfcef Add info command (#145)
* 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

* Add info command

* Record the number of clients in the current Godis server

* Add info command
2023-03-29 08:12:53 +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
Eriri
bde2c8ccbe Feat: Add HStrlen Command. 2022-06-04 14:44:58 +08:00
Eriri
951a844439 Feat:Add hrandfield Command. 2022-06-04 14:41:46 +08:00
Eriri
24b785e023 Remove redundant code in sortedset.go 2022-06-01 14:27:29 +08:00
hdt3213
665fd2a219 support save and bgsave 2022-05-23 22:47:26 +08:00
Singularity0909
7059a123d1 feat: add SPOP command 2022-05-12 14:13:05 +08:00
hdt3213
c1d800e110 fix test suite 2022-04-30 19:33:11 +08:00
hdt3213
24faeb3c56 fix test suite 2022-04-30 19:23:49 +08:00
hdt3213
0da9c96a3b support bitmap 2022-04-30 19:03:32 +08:00
hdt3213
e8891f8386 load RDB file 2022-04-18 21:00:42 +08:00
hdt3213
6be0452040 tcc rename nx 2022-04-11 22:42:31 +08:00
hdt3213
e378731a26 optimize code structure 2022-04-11 20:17:07 +08:00
hdt3213
374606f6f1 tcc rename 2022-04-10 18:31:55 +08:00
hdt3213
37ef7d8a34 rename godis/redis/reply to godis/redis/protocol 2022-04-10 08:35:51 +08:00
hdt3213
c97f3aae6e using TCC for MSetNX in cluster 2022-04-10 08:33:24 +08:00
hdt3213
38001a2d18 go lint 2021-11-08 23:24:43 +08:00
hdt3213
4163a45278 optimize project structure 2021-11-08 23:05:53 +08:00