antirez
c2dbda9b6a
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2018-06-14 18:11:04 +02:00
antirez
d6e8fe77af
Fix infinite loop in dbRandomKey().
...
Thanks to @kevinmcgehee for signaling the issue and reasoning about the
consequences and potential fixes.
Issue #5015 .
2018-06-14 18:08:21 +02:00
antirez
66b99d9639
Fix infinite loop in dbRandomKey().
...
Thanks to @kevinmcgehee for signaling the issue and reasoning about the
consequences and potential fixes.
Issue #5015 .
2018-06-14 18:08:21 +02:00
Salvatore Sanfilippo
40d5df6547
Merge pull request #5008 from zwkno1/unstable
...
fix geohashEncode bug when step > 30
2018-06-14 14:01:40 +02:00
Salvatore Sanfilippo
162be7f88c
Merge pull request #5008 from zwkno1/unstable
...
fix geohashEncode bug when step > 30
2018-06-14 14:01:40 +02:00
Salvatore Sanfilippo
8bc3ffcb29
Merge pull request #5021 from soloestoy/fix-exists
...
fix exists command on slave
2018-06-14 13:58:30 +02:00
Salvatore Sanfilippo
f2bd8c74dd
Merge pull request #5021 from soloestoy/fix-exists
...
fix exists command on slave
2018-06-14 13:58:30 +02:00
Salvatore Sanfilippo
6c7847a183
Merge pull request #5018 from soloestoy/optimize-reply
...
optimize reply list memory usage
2018-06-14 13:32:00 +02:00
Salvatore Sanfilippo
705d27d642
Merge pull request #5018 from soloestoy/optimize-reply
...
optimize reply list memory usage
2018-06-14 13:32:00 +02:00
Fuxin Hao
a4f658b2b5
Fix update_zmalloc_stat_alloc in zrealloc
2018-06-14 16:44:19 +08:00
Fuxin Hao
a979061f86
Fix update_zmalloc_stat_alloc in zrealloc
2018-06-14 16:44:19 +08:00
zhaozhao.zz
2ffa533f85
fix exists command on slave
2018-06-14 01:30:07 +08:00
zhaozhao.zz
d836647376
fix exists command on slave
2018-06-14 01:30:07 +08:00
shenlongxing
e4e5a670e7
Fix config_set_numerical_field() integer overflow.
2018-06-13 23:27:53 +08:00
shenlongxing
7a86e8704d
Fix config_set_numerical_field() integer overflow.
2018-06-13 23:27:53 +08:00
zhaozhao.zz
963002d71e
optimize reply list memory usage
2018-06-13 20:35:40 +08:00
zhaozhao.zz
1443ce8c38
optimize reply list memory usage
2018-06-13 20:35:40 +08:00
antirez
ce17f76bbd
Security: fix redis-cli buffer overflow.
...
Thanks to Fakhri Zulkifli for reporting it.
The fix switched to dynamic allocation, copying the final prompt in the
static buffer only at the end.
2018-06-13 12:40:33 +02:00
antirez
47f3617541
Security: fix redis-cli buffer overflow.
...
Thanks to Fakhri Zulkifli for reporting it.
The fix switched to dynamic allocation, copying the final prompt in the
static buffer only at the end.
2018-06-13 12:40:33 +02:00
antirez
032ea657d7
RDB: Apply fix to rdbLoadMillisecondTime() only for new RDB versions.
...
This way we let big endian systems to still load old RDB versions.
However newver versions will be saved and loaded in a way that make RDB
expires cross-endian again. Thanks to @oranagra for the reporting and
the discussion about this problem, leading to this fix.
2018-06-12 18:21:39 +02:00
antirez
6dbc7987d7
RDB: Apply fix to rdbLoadMillisecondTime() only for new RDB versions.
...
This way we let big endian systems to still load old RDB versions.
However newver versions will be saved and loaded in a way that make RDB
expires cross-endian again. Thanks to @oranagra for the reporting and
the discussion about this problem, leading to this fix.
2018-06-12 18:21:39 +02:00
antirez
6b8a24a665
Streams: generate a few additional events.
...
Currently it does not look it's sensible to generate events for streams
consumer groups modification, being them metadata, however at least for
key-level events, like the creation or removal of a consumer group, I
added a few events here and there. Later we can evaluate if it makes
sense to add more. From the POV instead of WAIT (in Redis transaciton)
and signaling the key as modified, it looks like that the transaction
should not fail when a stream is modified, so no calls are made in
consumer groups related functions to signalModifiedKey().
2018-06-12 18:11:15 +02:00
antirez
2ec4d9be58
Streams: generate a few additional events.
...
Currently it does not look it's sensible to generate events for streams
consumer groups modification, being them metadata, however at least for
key-level events, like the creation or removal of a consumer group, I
added a few events here and there. Later we can evaluate if it makes
sense to add more. From the POV instead of WAIT (in Redis transaciton)
and signaling the key as modified, it looks like that the transaction
should not fail when a stream is modified, so no calls are made in
consumer groups related functions to signalModifiedKey().
2018-06-12 18:11:15 +02:00
antirez
b38682199b
Fix rdbSaveKeyValuePair() integer overflow.
...
Again thanks to @oranagra. The object idle time does not fit into an int
sometimes: use the native type that the serialization function will get
as argument, which is uint64_t.
2018-06-12 17:31:04 +02:00
antirez
cfeffb1afe
Fix rdbSaveKeyValuePair() integer overflow.
...
Again thanks to @oranagra. The object idle time does not fit into an int
sometimes: use the native type that the serialization function will get
as argument, which is uint64_t.
2018-06-12 17:31:04 +02:00
antirez
e534e9aa83
In scanDatabaseForReadyLists() now we need to handle ZSETs as well.
...
Since the introduction of ZPOP makes this needed. Thanks to @oranagra
for reporting.
2018-06-12 17:28:40 +02:00
antirez
d9a2f80281
In scanDatabaseForReadyLists() now we need to handle ZSETs as well.
...
Since the introduction of ZPOP makes this needed. Thanks to @oranagra
for reporting.
2018-06-12 17:28:40 +02:00
antirez
f70e88c1f6
RDB: store times consistently in little endian.
...
I'm not sure how this escaped the attention of Redis users for years,
but finally @oranagra reported this issue... Thanks to Oran.
2018-06-12 17:22:03 +02:00
antirez
49afd7d4c5
RDB: store times consistently in little endian.
...
I'm not sure how this escaped the attention of Redis users for years,
but finally @oranagra reported this issue... Thanks to Oran.
2018-06-12 17:22:03 +02:00
antirez
4774d61691
Streams: improve type correctness in t_stream.c.
2018-06-12 14:12:53 +02:00
antirez
048815f32e
Streams: improve type correctness in t_stream.c.
2018-06-12 14:12:53 +02:00
Itamar Haber
6b675b9525
Applies addReplySubSyntaxError to stream commands
2018-06-12 14:52:50 +03:00
Itamar Haber
2dbca202b7
Applies addReplySubSyntaxError to stream commands
2018-06-12 14:52:50 +03:00
antirez
bcc42028c1
Fix XGROUP help missing space.
2018-06-12 13:20:46 +02:00
antirez
41824b9b20
Fix XGROUP help missing space.
2018-06-12 13:20:46 +02:00
antirez
e916f4519c
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2018-06-12 13:14:01 +02:00
antirez
ca9902cec7
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2018-06-12 13:14:01 +02:00
Salvatore Sanfilippo
bcecbebb74
Merge pull request #5012 from shenlongxing/fix-config
...
fix active-defrag-threshold value error
2018-06-12 13:05:19 +02:00
Salvatore Sanfilippo
78ae4d647c
Merge pull request #5012 from shenlongxing/fix-config
...
fix active-defrag-threshold value error
2018-06-12 13:05:19 +02:00
Shen Longxing
13957c9d07
fix active-defrag-threshold value error
...
The active-defrag-threshold-lower/active-defrag-threshold-upper min/max value in redis.conf should be consistent with 'config set' command.
2018-06-12 17:59:32 +08:00
Shen Longxing
67d2e3d65b
fix active-defrag-threshold value error
...
The active-defrag-threshold-lower/active-defrag-threshold-upper min/max value in redis.conf should be consistent with 'config set' command.
2018-06-12 17:59:32 +08:00
antirez
7cc1312789
Streams: fix backward iteration when entry is not flagged SAMEFIELD.
...
See issue #5006 . The comment in the code was also wrong and
was rectified as well.
2018-06-12 10:22:49 +02:00
antirez
77c72d5e40
Streams: fix backward iteration when entry is not flagged SAMEFIELD.
...
See issue #5006 . The comment in the code was also wrong and
was rectified as well.
2018-06-12 10:22:49 +02:00
球状闪电
7659619824
Update geohash.c
...
fix geohasEncode bug when step > 31
2018-06-12 15:28:28 +08:00
球状闪电
a882df74e0
Update geohash.c
...
fix geohasEncode bug when step > 31
2018-06-12 15:28:28 +08:00
Salvatore Sanfilippo
82661ba329
Merge pull request #5007 from leonchen83/patch-2
...
fix typo issue #5005
2018-06-12 09:28:26 +02:00
Salvatore Sanfilippo
1e15565b37
Merge pull request #5007 from leonchen83/patch-2
...
fix typo issue #5005
2018-06-12 09:28:26 +02:00
antirez
923e63e5ec
Streams: increment dirty counter for XGROUP SETID/DESTROY.
...
See issue #5005 comments.
2018-06-12 09:27:40 +02:00
antirez
2e9812bf9c
Streams: increment dirty counter for XGROUP SETID/DESTROY.
...
See issue #5005 comments.
2018-06-12 09:27:40 +02:00
Baoyi Chen
fac3e8aab5
fix typo
...
fix [#5005 ](https://github.com/antirez/redis/issues/5005 )
2018-06-12 08:52:18 +08:00