antirez
319f2ee659
Re-apply rebased #2358 .
2018-08-29 12:28:55 +02:00
zhaozhao.zz
22c166da5a
block: format code
2018-08-29 12:28:43 +02:00
zhaozhao.zz
c03c591330
block: rewrite BRPOPLPUSH as RPOPLPUSH to propagate
2018-08-29 12:28:39 +02:00
zhaozhao.zz
fcd5ef1624
networking: make setProtocolError simple and clear
...
Function setProtocolError just records proctocol error
details in server log, set client as CLIENT_CLOSE_AFTER_REPLY.
It doesn't care about querybuf sdsrange, because we
will do it after procotol parsing.
2018-08-29 12:28:35 +02:00
zhaozhao.zz
656e4b2f9d
networking: just move qb_pos instead of sdsrange in processInlineBuffer
2018-08-29 12:28:31 +02:00
zhaozhao.zz
2c7972cec8
networking: just return C_OK if multibulk processing saw a <= 0 length.
2018-08-29 12:28:25 +02:00
zhaozhao.zz
aff86fa1f5
pipeline: do not sdsrange querybuf unless all commands processed
...
This is an optimization for processing pipeline, we discussed a
problem in issue #5229 : clients may be paused if we apply `CLIENT
PAUSE` command, and then querybuf may grow too large, the cost of
memmove in sdsrange after parsing a completed command will be
horrible. The optimization is that parsing all commands in queyrbuf
, after that we can just call sdsrange only once.
2018-08-29 12:28:19 +02:00
Chris Lamb
45a6c5be2a
Use SOURCE_DATE_EPOCH over unreproducible uname + date calls.
...
See <https://reproducible-builds.org/specs/source-date-epoch/ > for more
details.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2018-08-29 12:28:16 +02:00
dejun.xdj
b59f04a099
Streams: ID of xclaim command starts from the sixth argument.
2018-08-29 12:28:09 +02:00
shenlongxing
a3f2437bdd
Fix stream command paras
2018-08-29 12:28:06 +02:00
antirez
df9112354b
Fix AOF comment to report the current behavior.
...
Realted to #5201 .
2018-08-29 12:28:04 +02:00
antirez
5b06bdf457
Redis 5.0 RC4.
2018-08-03 16:46:06 +02:00
antirez
fbbcc6a657
Streams IDs parsing refactoring.
...
Related to #5184 .
2018-08-02 18:34:42 +02:00
antirez
63addc5c1e
Fix zslUpdateScore() edge case.
...
When the element new score is the same of prev/next node, the
lexicographical order kicks in, so we can safely update the node in
place only when the new score is strictly between the adjacent nodes
but never equal to one of them.
Technically speaking we could do extra checks to make sure that even if the
score is the same as one of the adjacent nodes, we can still update on
place, but this rarely happens, so probably not a good deal to make it
more complex.
Related to #5179 .
2018-08-02 18:34:34 +02:00
antirez
724740cc19
More commenting of zslUpdateScore().
2018-08-02 18:34:34 +02:00
antirez
ddc87eef4f
Explain what's the point of zslUpdateScore() in top comment.
2018-08-02 18:34:34 +02:00
antirez
741f29ea52
Remove old commented zslUpdateScore() from source.
2018-08-02 18:34:34 +02:00
antirez
201168368a
Optimize zslUpdateScore() as asked in #5179 .
2018-08-02 18:34:34 +02:00
antirez
8c297e8b43
zsetAdd() refactored adding zslUpdateScore().
2018-08-02 18:34:34 +02:00
dejun.xdj
bd2f3f6bb1
Streams: rearrange the usage of '-' and '+' IDs in stream commands.
2018-08-02 18:34:34 +02:00
dejun.xdj
c0c06b8456
Streams: add mmid_supp argument in streamParseIDOrReply().
...
If 'mmid_supp' is set to 0, "-" and "+" will be
treated as an invalid ID.
2018-08-02 18:34:34 +02:00
Oran Agra
3662289995
add DEBUG LOG, to to assist test suite debugging
2018-08-02 18:34:34 +02:00
antirez
83d4311acd
Cluster cron announce IP minor refactoring.
2018-08-02 18:34:04 +02:00
shenlongxing
a633f8e130
Fix cluster-announce-ip memory leak
2018-08-02 18:34:04 +02:00
antirez
24c455381a
Tranfer -> transfer typo fixed.
2018-08-02 18:34:04 +02:00
zhaozhao.zz
c609f240a5
refactor dbOverwrite to make lazyfree work
2018-08-02 18:34:04 +02:00
antirez
9e97173988
Refactoring: replace low-level checks with writeCommandsDeniedByDiskError().
2018-08-02 18:34:04 +02:00
antirez
0e77cef096
Fix writeCommandsDeniedByDiskError() inverted return value.
2018-08-02 18:34:04 +02:00
antirez
acfe9d138a
Better top comment for writeCommandsDeniedByDiskError().
2018-08-02 18:34:04 +02:00
antirez
4e933e0059
Introduce writeCommandsDeniedByDiskError().
2018-08-02 18:34:04 +02:00
WuYunlong
41607dfd25
Consider aof write error as well as rdb in lua script.
2018-08-02 18:34:04 +02:00
Salvatore Sanfilippo
1d073a64f7
Merge pull request #5168 from rpv-tomsk/issue-5033
...
INFO CPU: higher precision of reported values
2018-07-30 18:03:15 +02:00
Guy Korland
2db31fd4bb
Few typo fixes
2018-07-30 18:00:32 +02:00
antirez
64242757d7
Add year in log.
...
User: "is there a reason why redis server logs are missing the year in
the "date time"?"
Me: "I guess I did not imagine it would be stable enough to run for
several years".
2018-07-30 18:00:30 +02:00
antirez
9a76472d71
Make dynamic hz actually configurable.
2018-07-30 18:00:24 +02:00
antirez
a330d06c82
Control dynamic HZ via server configuration.
2018-07-30 18:00:21 +02:00
antirez
d42602ffc8
Dynamic HZ: adapt cron frequency to number of clients.
2018-07-30 18:00:19 +02:00
antirez
7b5f0223f8
Dynamic HZ: separate hz from the configured hz.
...
This way we can remember what the user configured HZ is, but change the
actual HZ dynamically if needed in the dynamic HZ feature
implementation.
2018-07-30 18:00:16 +02:00
antirez
037b00dece
Remove useless conditional from emptyDb().
...
Related to #4852 .
2018-07-30 17:59:52 +02:00
antirez
0e97ae79b0
Make emptyDb() change introduced in #4852 simpler to read.
2018-07-30 17:59:49 +02:00
zhaozhao.zz
f7740fafbd
optimize flushdb, avoid useless loops
2018-07-30 17:59:46 +02:00
zhaozhao.zz
0c00837669
Streams: fix xdel memory leak
2018-07-30 17:59:43 +02:00
antirez
dc600a25cd
Example the magic +1 in migrateCommand().
...
Related to #5154 .
2018-07-30 17:59:40 +02:00
antirez
d6827ab638
Make changes of PR #5154 hopefully simpler.
2018-07-30 17:59:37 +02:00
WuYunlong
89ec14531b
Do not migrate already expired keys.
2018-07-30 17:59:35 +02:00
Pavel Rochnyack
cd25ed17b9
INFO CPU: higher precision of reported values
...
Closes : #5033
2018-07-25 21:50:24 +07:00
antirez
6bfb4745fa
Streams: refactoring of next entry seek in the iterator.
...
After #5161 the code could be made a bit more obvious for newcomers.
2018-07-24 11:16:25 +02:00
zhaozhao.zz
4724548e07
Streams: skip master fileds only when we are going forward in streamIteratorGetID
2018-07-24 11:16:21 +02:00
antirez
a1e081f719
string2ll(): better commenting.
2018-07-24 11:16:11 +02:00
dsomeshwar
8b4fe752ec
removing redundant check
2018-07-24 11:16:07 +02:00