Yossi Gottlieb
9b7009b141
CommandFilter API: Add unregister option.
...
A filter handle is returned and can be used to unregister a filter. In
the future it can also be used to further configure or manipulate the
filter.
Filters are now automatically unregistered when a module unloads.
2019-05-13 16:35:46 +02:00
Yossi Gottlieb
0580244217
CommandFilter API: Extend documentation.
2019-05-13 16:35:43 +02:00
Yossi Gottlieb
d5194dafd2
CommandFilter API: hellofilter and tests.
2019-05-13 16:35:38 +02:00
Yossi Gottlieb
8897c15406
CommandFilter API: Support Lua and RM_call() flows.
2019-05-13 16:35:35 +02:00
Yossi Gottlieb
6dd5bad49b
CommandFilter API: More cleanup.
2019-05-13 16:35:32 +02:00
Yossi Gottlieb
8302610199
Add command filter Module API tests.
2019-05-13 16:35:29 +02:00
Yossi Gottlieb
dc5edc7bbe
Add command filtering argument handling API.
2019-05-13 16:35:25 +02:00
Yossi Gottlieb
5f29e2e220
Initial command filter experiment.
2019-05-13 16:35:21 +02:00
Oran Agra
e1839ab327
diskless fork kept streaming RDB to a disconnected slave
2019-05-13 16:35:04 +02:00
Oran Agra
3b207b894a
diskless replication - notify slave when rdb transfer failed
...
in diskless replication - master was not notifing the slave that rdb transfer
terminated on error, and lets slave wait for replication timeout
2019-05-13 16:34:59 +02:00
antirez
7e350b0931
More sensible name for function: restartAOFAfterSYNC().
...
Related to #3829 .
2019-05-13 16:34:31 +02:00
antirez
91238a6031
Mostly aesthetic changes to restartAOF().
...
See #3829 .
2019-05-13 16:34:25 +02:00
oranagra
ee2da67cc6
bugfix to restartAOF, exit will never happen since retry will get negative.
...
also reduce an excess sleep
2019-05-13 16:34:15 +02:00
Oran Agra
78022492d5
Add log when server dies of SIGTERM during loading
...
this is very confusing to see the server disappears as if it got SIGKILL when it was not the case.
2019-05-13 16:33:34 +02:00
Yossi Gottlieb
232dca7fbc
Add RedisModule_GetKeyNameFromIO().
2019-05-13 16:32:32 +02:00
antirez
7f98129a81
MANIFESTO: simplicity and lock-in.
2019-05-13 16:32:24 +02:00
antirez
71265fe389
MANIFESTO v2.
2019-05-13 16:32:18 +02:00
yongman
8115be6e10
Fix uint64_t hash value in active defrag
2019-05-10 18:10:43 +02:00
Angus Pearson
90e7b5a97a
Enlarge error buffer in redis-check-aof.c to remove compiler warning of output truncation through snprintf format string
2019-05-10 18:10:24 +02:00
zhaozhao.zz
43151baf61
fix memory leak when rewrite config file
2019-05-10 18:10:10 +02:00
唐权
d3c17c9d0f
Update ziplist.c
...
Hi, @antirez
In the code, to get the size of ziplist, "unsigned int bytes = ZIPLIST_HEADER_SIZE+1;" is correct,
but why not make it more readable and easy to understand
2019-05-10 18:10:02 +02:00
stan011
296bd0976c
change the comments there may have a mis type
2019-05-10 18:09:48 +02:00
Yossi Gottlieb
e08c9c154b
Preserve client->id for blocked clients.
2019-05-10 18:09:42 +02:00
zhaozhao.zz
c6b1252f1d
aof: enhance AOF_FSYNC_EVERYSEC, more details in #5985
2019-05-10 18:09:32 +02:00
David Carlier
ce54e2991c
build fix
2019-04-26 17:32:42 +02:00
yongman
c9274498db
Fix memleak in bitfieldCommand
2019-04-26 17:31:59 +02:00
James Rouzier
635d8d83d2
Fix start and end key initialize
2019-04-26 17:25:55 +02:00
Salvatore Sanfilippo
7c23e534ce
Merge pull request #6047 from abhaynahar/removed-obsolete-warning-5.0
...
removed obsolete warning as per - https://github.com/antirez/redis/is…
2019-04-26 17:02:16 +02:00
abhay
9ea8ec421d
removed obsolete warning as per - https://github.com/antirez/redis/issues/5291
2019-04-25 13:50:25 +05:30
antirez
1b7407fadf
Aesthetic change to #5962 to conform to Redis style.
2019-04-10 18:53:27 +02:00
Oran Agra
3bbf9747a3
slave corrupts replication stream when module blocked client uses large reply (or POSTPONED_ARRAY)
...
when redis appends the blocked client reply list to the real client, it didn't
bother to check if it is in fact the master client. so a slave executing that
module command will send replies to the master, causing the master to send the
slave error responses, which will mess up the replication offset
(slave will advance it's replication offset, and the master does not)
2019-04-10 18:47:32 +02:00
antirez
f72f4ea311
Redis 5.0.4.
5.0.4
2019-03-18 17:21:29 +01:00
antirez
84bdd44039
HyperLogLog: fix comment in hllCount().
2019-03-18 11:25:57 +01:00
antirez
ef1833b3f9
HyperLogLog: handle wrong offset in the base case.
2019-03-18 11:25:57 +01:00
antirez
623afd5e4b
HyperLogLog: speedup fuzz test.
2019-03-18 11:25:57 +01:00
antirez
12b5ff1095
HyperLogLog: enlarge reghisto variable for safety.
2019-03-18 11:25:57 +01:00
antirez
254d897e9e
HyperLogLog: dense/sparse repr parsing fuzz test.
2019-03-18 11:25:57 +01:00
John Sully
7f79849caa
Fix hyperloglog corruption
2019-03-18 11:25:27 +01:00
Brad Solomon
3ef2c8316e
Provide an uninstall target in Makefile
...
On `make uninstall`, removes:
- /usr/local/bin/redis-benchmark
- /usr/local/bin/redis-check-aof
- /usr/local/bin/redis-check-rdb
- /usr/local/bin/redis-cli
- /usr/local/bin/redis-sentinel
- /usr/local/bin/redis-server
(Only the src/ versions are removed in `make clean`)
2019-03-18 11:25:23 +01:00
antirez
57aea4632f
redis-check-aof: fix potential overflow.
...
Bug signaled by @vattezhang in PR #5940 but fixed differently.
2019-03-18 11:16:53 +01:00
antirez
ba5145b8e9
Fix objectSetLRUOrLFU() when LFU underflows.
2019-03-14 18:00:56 +01:00
antirez
76c59f0e44
Fix ZPOP return type when COUNT=0. Related to #5799 .
2019-03-14 17:52:02 +01:00
antirez
1c6367144b
Improve comments after merging #5834 .
2019-03-14 13:26:15 +01:00
Guy Benoish
6a3fca4c67
Trim SDS free space of retained module strings
...
In some cases processMultibulkBuffer uses sdsMakeRoomFor to
expand the querybuf, but later in some cases it uses that query
buffer as is for an argv element (see "Optimization"), which means
that the sds in argv may have a lot of wasted space, and then in case
modules keep that argv RedisString inside their data structure, this
space waste will remain for long (until restarted from rdb).
2019-03-14 13:26:09 +01:00
Guy Benoish
9ec144ea30
Fix mismatching keyspace notification classes
2019-03-14 12:30:38 +01:00
Guy Benoish
d04b521150
Fix zlexrangespec mem-leak in genericZrangebylexCommand
2019-03-14 11:45:25 +01:00
Guy Benoish
516f1c7722
Use memtoll() in 'CONFIG SET client-output-buffer-limit'
2019-03-14 11:44:14 +01:00
Guy Benoish
8db67a556b
Increase string2ld's buffer size (and fix HINCRBYFLOAT)
...
The string representation of `long double` may take
up to ~5000 chars (see PR #3745 ).
Before this fix HINCRBYFLOAT would never overflow (since
the string could not exceed 256 chars). Now it can.
2019-03-14 11:35:13 +01:00
Guy Benoish
db3d626bac
Check server.verbosity in RM_LogRaw
2019-03-14 11:32:31 +01:00
Guy Benoish
71439a07fd
ZPOP should return an empty array if COUNT=0
2019-03-14 11:29:37 +01:00