antirez
04d2faf7f6
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2018-12-07 17:07:14 +01:00
antirez
50c8580a33
Remove no longer relevant comment in processCommand().
2018-12-07 17:06:55 +01:00
Salvatore Sanfilippo
2af190d9f8
Merge pull request #5673 from soloestoy/check-current-client-after-freememory
...
networking: current_client should not be NULL when trim qb_pos
2018-12-07 17:03:48 +01:00
antirez
fd4bea34b5
DEBUG DIGEST-VALUE implemented.
2018-12-07 16:41:54 +01:00
antirez
439e29a38a
DEBUG DIGEST refactoring: extract function to digest a value.
2018-12-07 16:30:33 +01:00
Salvatore Sanfilippo
944edff974
Merge pull request #5271 from funny-falcon/cli-migrate-replace
...
redis-cli reshard/rebalance: ability to force replacement on existing keys
2018-12-07 12:27:32 +01:00
zhaozhao.zz
33b1020859
networking: current_client should not be NULL when trim qb_pos
2018-12-07 19:14:33 +08:00
yura
3cd5152007
redis-cli reshard/rebalance: ability to force replacement on existing keys
2018-12-07 14:14:11 +03:00
Salvatore Sanfilippo
8b67a78dfa
Merge pull request #5460 from krallin/env-password
...
cli: pass auth through REDISCLI_AUTH
2018-12-07 11:30:07 +01:00
Salvatore Sanfilippo
32ed397859
Merge pull request #5664 from yongman/fix-rediscli-output-format
...
Fix cluster call reply format readable
2018-12-07 11:28:18 +01:00
Salvatore Sanfilippo
7b16be3fab
Merge pull request #5663 from madolson/dev_monitor_crash
...
Fixed a serverPanic when sending an invalid command to a monitor client
2018-12-04 18:09:43 +01:00
yongman
8696f09314
Fix cluster call reply format readable
2018-12-04 17:36:42 +08:00
Madelyn Olson
38120939d1
Fixed a serverPanic when sending an invalid command to a monitor client
2018-12-04 07:17:17 +00:00
Salvatore Sanfilippo
4808a09a4f
Merge pull request #5549 from oranagra/fix_test_races
...
fix small test suite race conditions
2018-11-28 18:17:05 +01:00
Salvatore Sanfilippo
120daf0a04
Merge pull request #5562 from soloestoy/memory-usage-more-accurate
...
MEMORY command: make USAGE more accurate
2018-11-28 18:16:04 +01:00
Salvatore Sanfilippo
2648ccacb6
Merge pull request #5594 from yongman/fix-rediscli-fixcoverage
...
Fix choose a random master node for slot assignment
2018-11-28 18:13:04 +01:00
zhaozhao.zz
cfb421fe3a
MEMORY command: make USAGE more accurate
...
In MEMORY USAGE command, we count the key argv[2] into usage,
but the argument in command may contains free spaces because of
sdsMakeRoomFor. But the key in db never contains free spaces
because we use sdsdup when dbAdd, so using the real key to
count the usage is more accurate.
2018-11-29 01:01:51 +08:00
Salvatore Sanfilippo
d4ac0287e3
Merge pull request #5572 from Weiliang-Li/patch3-util
...
fix comment typo in util.c
2018-11-28 17:14:21 +01:00
antirez
2d5544de8b
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2018-11-28 17:12:32 +01:00
Qu Chen
eb1c67673d
Add unit test for stream XCLAIM command.
2018-11-28 17:12:03 +01:00
Salvatore Sanfilippo
307ef33b65
Merge pull request #5597 from lamby/clarify-socket-creation-error-message
...
Clarify the "Creating Server TCP listening socket" error message
2018-11-28 17:06:51 +01:00
Salvatore Sanfilippo
747a4a928e
Merge pull request #5598 from lamby/dont-treat-unsupported-protocols-as-fatal-errors
...
Don't treat unsupported protocols as fatal errors
2018-11-28 17:06:17 +01:00
Salvatore Sanfilippo
bcd4fb04ad
Merge pull request #5599 from devnexen/backtrace_support_on_bsd
...
Backtrace/register dump on BSD.
2018-11-28 17:01:33 +01:00
Salvatore Sanfilippo
8981b91c2f
Merge pull request #4737 from guybe7/zlexcount_fix
...
Don't call sdscmp() with shared.maxstring or shared.minstring
2018-11-28 16:53:32 +01:00
antirez
4c65479744
Abort instead of crashing when loading bad stream master key.
...
See #5612 .
2018-11-28 16:24:53 +01:00
David Carlier
131343d466
OpenBSD support.
...
Special treatment here as backtrace support is optional,
cannot be found via pkg-config and similar neither.
2018-11-25 08:10:26 +00:00
David Carlier
5cd50d39fb
Backtrace/register dump on BSD.
...
FreeBSD/DragonFlyBSD does have backtrace only it does not
belong to libc.
2018-11-25 07:21:56 +00:00
Chris Lamb
99c2604541
Don't treat unsupported protocols as fatal errors
...
If we encounter an unsupported protocol in the "bind" list, don't
ipso-facto consider it a fatal error. We continue to abort startup if
there are no listening sockets at all.
This ensures that the lack of IPv6 support does not prevent Redis from
starting on Debian where we try to bind to the ::1 interface by default
(via "bind 127.0.0.1 ::1"). A machine with IPv6 disabled (such as some
container systems) would simply fail to start Redis after the initiall
call to apt(8).
This is similar to the case for where "bind" is not specified:
https://github.com/antirez/redis/issues/3894
... and was based on the corresponding PR:
https://github.com/antirez/redis/pull/4108
... but also adds EADDRNOTAVAIL to the list of errors to catch which I
believe is missing from there.
This issue was raised in Debian as both <https://bugs.debian.org/900284 >
& <https://bugs.debian.org/914354 >.
2018-11-23 18:01:12 +01:00
Chris Lamb
be459c7e26
Clarify the "Creating Server TCP listening socket" error.
...
This really helps spot it in the logs, otherwise it does not look like a
warning/error. For example:
Creating Server TCP listening socket ::1:6379: bind: Cannot assign requested address
... is not nearly as clear as:
Could not create server TCP listening listening socket ::1:6379: bind: Cannot assign requested address
2018-11-23 17:57:01 +01:00
yongman
c2fa863c55
fix typo
2018-11-23 23:51:16 +08:00
yongman
3afdde7c56
Fix choose a random master node for slot assignment
2018-11-23 16:58:55 +08:00
Salvatore Sanfilippo
5099745426
Merge pull request #5553 from devnexen/dflybsd_build_fix
...
DragonFlyBSD little build fix
2018-11-22 11:16:30 +01:00
Salvatore Sanfilippo
34b206057e
Merge pull request #5590 from yongman/fix-cluster-fix-command
...
Fix command error when fixing open slots
2018-11-22 11:10:56 +01:00
yongman
1a86562f52
skip slave nodes when sending cluster setslot command
2018-11-21 23:01:35 +08:00
Salvatore Sanfilippo
59c5134218
Merge pull request #5579 from yongman/fix-rediscli-pointer-access
...
Fix pointer access and memory leak in redis-cli.
2018-11-20 10:38:59 +01:00
antirez
41615d418b
Test: regression test for #5570 .
2018-11-19 17:19:33 +01:00
antirez
9956f4f61b
Stream: fix XREADGROUP history reading of deleted messages.
...
This commit fixes #5570 . It is a similar bug to one fixed a few weeks
ago and is due to the range API to be called with NULL as "end ID"
parameter instead of repeating again the start ID, to be sure that we
selectively issue the entry with a given ID, or we get zero returned
(and we know we should emit a NULL reply).
2018-11-19 17:00:34 +01:00
antirez
195e754247
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2018-11-19 16:51:09 +01:00
antirez
0d7f49c3cc
Test: regression test for #5577 .
2018-11-19 16:50:54 +01:00
antirez
cd47c66c7a
Streams: fix XREADGROUP history reading when CG last_id is low.
...
This fixes the issue reported in #5570 .
This was fixed the hard way, that is, propagating more information to
the lower level API about this being a request to read just the history,
so that the code is simpler and less likely to regress.
2018-11-19 16:41:27 +01:00
antirez
f943c1d3f4
t_stream.c comment resized to 80 cols.
2018-11-19 16:26:02 +01:00
yongman
16b57b8e23
Fix pointer access and memory leak in redis-cli.
2018-11-16 17:27:27 +08:00
Weiliang Li
94bda53a8a
fix comment typo in util.c
...
fix comment typo in util.c
2018-11-15 16:55:40 +08:00
Oran Agra
77400dde8a
fix small test suite race conditions
2018-11-12 10:26:10 +02:00
David Carlier
d034b38f4f
DragonFlyBSD little build fix
2018-11-11 18:49:55 +00:00
Salvatore Sanfilippo
eb2ec54b49
Merge pull request #5507 from devnexen/clang_build_fix_warnings
...
Fix clang build.
2018-11-08 12:12:28 +01:00
David Carlier
7cfbba40f0
only FreeBSD change/little warning addressing
2018-11-08 10:13:52 +00:00
antirez
8abfdc43f1
Fix cluster-replica-no-failover option name.
...
Thanks to @NicolasLM, see issue #5537 .
2018-11-07 12:54:46 +01:00
antirez
465d1b7934
MEMORY command: make strcasecmp() conditional like the following.
2018-11-06 18:15:51 +01:00
Salvatore Sanfilippo
360eb38691
Merge pull request #4526 from itamarhaber/memory_help
...
Standardizes `MEMORY HELP` subcommand
2018-11-06 18:13:17 +01:00