redict/src
Guy Benoish fd8efb7c36 Replication buffer fills up on high rate traffic.
When feeding the master with a high rate traffic the the slave's feed is much slower.
This causes the replication buffer to grow (indefinitely) which leads to slave disconnection.
The problem is that writeToClient() decides to stop writing after NET_MAX_WRITES_PER_EVENT
writes (In order to be fair to clients).
We should ignore this when the client is a slave.
It's better if clients wait longer, the alternative is that the slave has no chance to stay in
sync in this situation.
2018-01-18 12:10:48 +01:00
..
modules Added RM_UnlinkKey - a low level analog to UNLINK command 2018-01-07 16:41:43 +02:00
.gitignore Ignore gcov/lcov artifacts 2012-04-13 17:52:33 -07:00
adlist.c adlist: fix listJoin() in the case the second list is empty. 2017-11-28 18:25:14 +01:00
adlist.h Modules TSC: Handling of RM_Reply* functions. 2017-05-02 15:05:39 +02:00
ae_epoll.c various cleanups and minor fixes 2016-04-25 16:49:57 +03:00
ae_evport.c ae.c event loop: API to resize the fd set size on the run. 2013-06-28 16:39:49 +02:00
ae_kqueue.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
ae_select.c Include 'fd_set' type name 2016-06-07 16:46:00 -04:00
ae.c Event loop: call after sleep() only from top level. 2017-07-11 00:13:52 +02:00
ae.h Event loop: call after sleep() only from top level. 2017-07-11 00:13:52 +02:00
anet.c fix a typo 2017-08-08 17:45:51 +08:00
anet.h Fix ae.c to avoid timers infinite loop. 2016-04-04 08:50:58 +02:00
aof.c aof: format code and comment 2018-01-15 13:01:03 +01:00
asciilogo.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
atomicvar.h atomicvar.h: show used API in INFO. Add macro to force __sync builtin. 2017-05-10 09:33:49 +02:00
bio.c Lazyfree: ability to free whole DBs in background. 2015-10-01 13:02:26 +02:00
bio.h Threaded lazyfree WIP #1. 2015-10-01 13:02:25 +02:00
bitops.c Use ARM unaligned accesses ifdefs for SPARC as well. 2017-02-23 22:39:44 +08:00
blocked.c Streams: state machine for reverse iteration WIP 1. 2017-12-01 10:24:25 +01:00
childinfo.c Clear child data when opening the pipes. 2016-09-19 14:11:17 +02:00
cluster.c Rewrite MIGRATE AUTH option. 2018-01-09 18:48:26 +01:00
cluster.h Fixed comment in clusterMsg version field 2017-06-04 15:09:05 +01:00
config.c proto-max-querybuf-len -> client-query-buffer-limit. 2018-01-11 11:36:26 +01:00
config.h Use ARM unaligned accesses ifdefs for SPARC as well. 2017-02-23 22:39:44 +08:00
crc16.c RDMF (Redis/Disque merge friendlyness) refactoring WIP 1. 2015-07-26 15:17:18 +02:00
crc64.c Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
crc64.h Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
db.c Fix getKeysUsingCommandTable() in the case of nagative arity. 2018-01-12 11:26:29 +01:00
debug.c Fix a typo(maybe instruction?) in crash log 2018-01-09 16:13:02 +08:00
debugmacro.h Use the standard predefined identifier __func__ (since C99) 2016-08-04 15:12:12 +08:00
defrag.c dict: fix the int problem for defrag 2017-12-05 15:38:03 +01:00
dict.c dict: fix the int problem for defrag 2017-12-05 15:38:03 +01:00
dict.h dict: fix the int problem for defrag 2017-12-05 15:38:03 +01:00
endianconv.c Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
endianconv.h Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
evict.c LFU: Fix LFUDecrAndReturn() to just decrement. 2017-11-28 12:18:30 +01:00
expire.c expire & latency: fix the missing latency records generated by expire 2017-11-21 23:35:30 +08:00
fmacros.h Silence _BSD_SOURCE warnings in glibc 2.20 and forward 2014-12-05 12:41:59 +11:00
geo.c Added GEORADIUS(BYMEMBER)_RO variants for read-only operations. 2017-06-30 10:03:37 +02:00
geo.h RDMF (Redis/Disque merge friendlyness) refactoring WIP 1. 2015-07-26 15:17:18 +02:00
geohash_helper.c Fix GEORADIUS edge case with huge radius. 2017-07-03 19:38:31 +02:00
geohash_helper.h Fix definition of M_PI in geohash_helper.c. 2016-07-06 16:31:11 +02:00
geohash.c Multiple GEORADIUS bugs fixed. 2016-07-27 11:34:25 +02:00
geohash.h Multiple GEORADIUS bugs fixed. 2016-07-27 11:34:25 +02:00
help.h redis-cli help.h updated. 2016-06-14 14:45:28 +02:00
hyperloglog.c Hyperloglog: refresh hdr variable correctly. 2017-12-22 11:26:31 +01:00
intset.c Merge pull request #3242 from whatacold/unstable 2016-12-20 15:39:56 +01:00
intset.h Use const in Redis Module API where possible. 2016-06-20 23:08:06 +03:00
latency.c Use SipHash hash function to mitigate HashDos attempts. 2017-02-20 17:29:17 +01:00
latency.h Separate latency monitoring of eviction loop and eviction DELs. 2015-02-11 10:52:27 +01:00
lazyfree.c Put more details in the comment introduced by #4601. 2018-01-15 12:50:08 +01:00
listpack_malloc.h Streams: change listpack allocator to zmalloc. 2017-12-01 10:24:24 +01:00
listpack.c Streams: Update listpack to fix 32bit strings encoding error. 2017-12-01 10:24:24 +01:00
listpack.h Streams: 12 commits squashed into the initial Streams implementation. 2017-12-01 10:24:24 +01:00
lzf_c.c Upgrade LZF to 3.6 (2011) from 3.5 (2009) 2015-01-02 11:16:10 -05:00
lzf_d.c Upgrade LZF to 3.6 (2011) from 3.5 (2009) 2015-01-02 11:16:10 -05:00
lzf.h No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
lzfP.h Fix undefined behavior constant defined. 2017-11-19 16:23:42 +00:00
Makefile Streams: 12 commits squashed into the initial Streams implementation. 2017-12-01 10:24:24 +01:00
memtest.c Hopefully better memory test on crash. 2015-12-16 17:41:22 +01:00
mkreleasehdr.sh suppress external diff program when using git diff. 2013-02-24 18:17:46 +01:00
module.c Merge pull request #4581 from dvirsky/module_unlink 2018-01-12 17:41:09 +01:00
multi.c Fix replication of SLAVEOF inside transaction. 2017-07-12 11:07:28 +02:00
networking.c Replication buffer fills up on high rate traffic. 2018-01-18 12:10:48 +01:00
notify.c Streams: fix XADD API and keyspace notifications. 2017-12-01 10:24:24 +01:00
object.c Fix memory usage list bug 2018-01-05 12:16:24 +08:00
pqsort.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
pqsort.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
pubsub.c Change indentation and other minor details of PR #4489. 2017-12-06 12:05:14 +01:00
quicklist.c quicklist: fix the return value of quicklistCount 2017-12-04 19:49:23 +08:00
quicklist.h quicklist: change the len of quicklist to unsigned long 2017-12-04 19:49:40 +08:00
rand.c Use 'void' for zero-argument functions 2014-08-08 10:05:32 +02:00
rand.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
rax_malloc.h Cluster: hash slots tracking using a radix tree. 2017-03-27 16:37:22 +02:00
rax.c Streams: implement stream object release. 2017-12-01 10:24:24 +01:00
rax.h Streams: implement stream object release. 2017-12-01 10:24:24 +01:00
rdb.c fix processing of large bulks (above 2GB) 2017-12-29 12:24:19 +02:00
rdb.h fix processing of large bulks (above 2GB) 2017-12-29 12:24:19 +02:00
redis-benchmark.c redis-benchmark: bugfix - handle zero liveclients in right way 2018-01-03 12:47:25 +08:00
redis-check-aof.c Correct proceding -> proceeding typo. 2017-07-14 22:53:14 +01:00
redis-check-rdb.c Fix file descriptor leak and error handling 2017-10-13 13:20:45 -04:00
redis-cli.c always enable command history in redis-cli 2017-12-13 23:49:41 +01:00
redis-trib.rb Cluster: improve anti-affinity algo in redis-trib.rb. 2018-01-18 11:44:19 +01:00
redisassert.h Add panic() into redisassert.h. 2017-01-18 17:12:07 +01:00
redismodule.h Added RM_UnlinkKey - a low level analog to UNLINK command 2018-01-07 16:41:43 +02:00
release.c No more trailing spaces in Redis source code. 2014-06-26 18:48:40 +02:00
replication.c Hopefully more clear comment to explain the change in #4607. 2018-01-16 15:52:13 +01:00
rio.c fix processing of large bulks (above 2GB) 2017-12-29 12:24:19 +02:00
rio.h fix processing of large bulks (above 2GB) 2017-12-29 12:24:19 +02:00
scripting.c Change indentation and other minor details of PR #4489. 2017-12-06 12:05:14 +01:00
sds.c fix processing of large bulks (above 2GB) 2017-12-29 12:24:19 +02:00
sds.h fix processing of large bulks (above 2GB) 2017-12-29 12:24:19 +02:00
sdsalloc.h SDS: changes to unify Redis SDS with antirez/sds repo. 2015-07-25 17:25:44 +02:00
sentinel.c Use SipHash hash function to mitigate HashDos attempts. 2017-02-20 17:29:17 +01:00
server.c Remove useless comment from serverCron(). 2018-01-17 11:23:41 +01:00
server.h New config options about protocol prefixed with "proto". 2018-01-11 11:27:41 +01:00
setproctitle.c Fix undefined behavior constant defined. 2017-11-19 16:23:42 +00:00
sha1.c sha1.c: use standard uint32_t. 2015-04-27 12:07:49 +02:00
sha1.h sha1.c: use standard uint32_t. 2015-04-27 12:07:49 +02:00
siphash.c SipHash 2-4 -> SipHash 1-2. 2017-02-21 17:07:28 +01:00
slowlog.c Change indentation and other minor details of PR #4489. 2017-12-06 12:05:14 +01:00
slowlog.h Merge pull request #4056 from season89/unstable 2017-06-20 16:55:29 +02:00
solarisfixes.h Check for __sun macro in solarisfixes.h, not in includers. 2015-01-09 11:23:22 +01:00
sort.c Lazyfree: Hash converted to use plain SDS WIP 4. 2015-10-01 13:02:25 +02:00
sparkline.c RDMF (Redis/Disque merge friendlyness) refactoring WIP 1. 2015-07-26 15:17:18 +02:00
sparkline.h LATENCY GRAPH implemented. 2014-07-02 16:31:22 +02:00
stream.h Streams: state machine for reverse iteration WIP 1. 2017-12-01 10:24:25 +01:00
syncio.c syncWithMaster(): non blocking state machine. 2015-08-06 18:12:20 +02:00
t_hash.c t_hash.c: clarify calling two times the same function. 2017-11-28 18:39:00 +01:00
t_list.c Streams: more internal preparation for blocking XREAD. 2017-12-01 10:24:24 +01:00
t_set.c set: fix the int problem for qsort 2017-12-05 17:42:19 +08:00
t_stream.c Streams: fix a few type mismatches in t_stream.c. 2017-12-04 11:59:15 +01:00
t_string.c Replication: fix the infamous key leakage of writable slaves + EXPIRE. 2016-12-13 10:59:54 +01:00
t_zset.c Use SipHash hash function to mitigate HashDos attempts. 2017-02-20 17:29:17 +01:00
testhelp.h BSD license added to every C source and header file. 2012-11-08 18:31:32 +01:00
util.c Prevent off-by-one read in stringmatchlen() (fixes #4527) 2017-12-12 01:25:03 +01:00
util.h Fix HINCRBYFLOAT to work with long doubles. 2015-11-04 17:16:34 +01:00
valgrind.sup more valgrind friendly test 2011-07-06 15:22:00 +02:00
version.h Mark version of unstable branch in an unique way. 2015-09-29 17:30:24 +02:00
ziplist.c fix assert problem in ZIP_DECODE_PREVLENSIZE 2018-01-16 22:43:06 +08:00
ziplist.h DEBUG: new "ziplist" subcommand added. Dumps a ziplist on stdout. 2016-12-16 09:02:50 +01:00
zipmap.c Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
zipmap.h Allow all code tests to run using Redis args 2014-12-23 09:31:03 -05:00
zmalloc.c zmalloc.c: remove thread safe mode, it's the default way. 2017-05-09 16:59:51 +02:00
zmalloc.h zmalloc.c: remove thread safe mode, it's the default way. 2017-05-09 16:59:51 +02:00