Otmar Ertl
633983d479
improved definition of HLL_Q
2018-03-10 20:22:42 +01:00
Otmar Ertl
bacac52eec
improved definition of HLL_Q
2018-03-10 20:22:42 +01:00
Otmar Ertl
1e9a774871
improved HyperLogLog cardinality estimation
...
based on method described in https://arxiv.org/abs/1702.01284
that does not rely on any magic constants
2018-03-10 20:13:21 +01:00
Otmar Ertl
47b0cfcbd2
improved HyperLogLog cardinality estimation
...
based on method described in https://arxiv.org/abs/1702.01284
that does not rely on any magic constants
2018-03-10 20:13:21 +01:00
Otmar Ertl
6470b21f59
replaced tab by spaces
2018-03-10 20:09:41 +01:00
Otmar Ertl
3eaf0e07d2
replaced tab by spaces
2018-03-10 20:09:41 +01:00
Guy Benoish
b660fc2fbe
Fix zlexrangespec mem-leak in genericZrangebylexCommand
2018-03-07 10:40:37 +07:00
Guy Benoish
290a63dc54
Don't call sdscmp() with shared.maxstring or shared.minstring
2018-03-06 20:14:35 +07:00
Guy Benoish
0888eb4a00
Don't call sdscmp() with shared.maxstring or shared.minstring
2018-03-06 20:14:35 +07:00
artix
a4cfd503ea
clusterManagerAddSlots: changed the way ADDSLOTS command is built
2018-03-06 13:06:04 +02:00
artix
928640dee0
clusterManagerAddSlots: changed the way ADDSLOTS command is built
2018-03-06 13:06:04 +02:00
artix
d518733073
ClusterManager: fixed --cluster-from 'all' parsing
2018-03-02 17:06:50 +01:00
artix
422e41606b
ClusterManager: fixed --cluster-from 'all' parsing
2018-03-02 17:06:50 +01:00
pan.liangp
f4eb64cd35
move get clients max buffer calculate into info clients command
2018-03-02 17:16:00 +08:00
pan.liangp
fb23cd0627
move get clients max buffer calculate into info clients command
2018-03-02 17:16:00 +08:00
antirez
84b281209a
Stream: update the listpack pointer in streamTrimByLength().
2018-03-01 17:26:02 +01:00
antirez
c277aaf3b4
Stream: update the listpack pointer in streamTrimByLength().
2018-03-01 17:26:02 +01:00
antirez
efcbc01fbd
Remove warning from lpGet snprintf().
2018-03-01 15:26:27 +01:00
antirez
8e0fbea741
Remove warning from lpGet snprintf().
2018-03-01 15:26:27 +01:00
antirez
d63caaa820
redis-cli: fix missed unit in array. Change define name.
2018-03-01 15:06:41 +01:00
antirez
1db665cda9
redis-cli: fix missed unit in array. Change define name.
2018-03-01 15:06:41 +01:00
charsyam
da7f5700cf
refactoring-call-aeDeleteFileEvent-twice-in-freeClusterLink
2018-03-01 22:30:39 +09:00
charsyam
ef132d1337
refactoring-call-aeDeleteFileEvent-twice-in-freeClusterLink
2018-03-01 22:30:39 +09:00
charsyam
51a03f6356
fix dlopen leak
2018-03-01 21:22:42 +09:00
charsyam
063e4b44c0
fix dlopen leak
2018-03-01 21:22:42 +09:00
Salvatore Sanfilippo
83b5b5a476
Merge pull request #4714 from charsyam/feature/fix-out-of-index-range
...
[BugFix] Fix out of array index range for findBigKeys in redis-cli
2018-03-01 03:39:15 -08:00
Salvatore Sanfilippo
38ecac9dd0
Merge pull request #4714 from charsyam/feature/fix-out-of-index-range
...
[BugFix] Fix out of array index range for findBigKeys in redis-cli
2018-03-01 03:39:15 -08:00
antirez
3a5bf75ede
Actually use ae_flags to add AE_BARRIER if needed.
...
Many thanks to @Plasma that spotted this problem reviewing the code.
2018-02-28 18:03:51 +01:00
antirez
99f94354a6
Actually use ae_flags to add AE_BARRIER if needed.
...
Many thanks to @Plasma that spotted this problem reviewing the code.
2018-02-28 18:03:51 +01:00
Artix
ce14d23740
Cluster Manager: fixed some memory error
2018-02-28 15:21:08 +01:00
Artix
a00157c44f
Cluster Manager: fixed some memory error
2018-02-28 15:21:08 +01:00
artix
fb41b8bb9c
Fixed memory write error in clusterManagerGetConfigSignature
2018-02-28 11:49:10 +01:00
artix
b15f3515f3
Fixed memory write error in clusterManagerGetConfigSignature
2018-02-28 11:49:10 +01:00
artix
2f056b8331
Cluster Manager: reshard command, fixed slots
...
parsing bug and other minor bugs.
2018-02-28 10:44:14 +01:00
artix
66548863a4
Cluster Manager: reshard command, fixed slots
...
parsing bug and other minor bugs.
2018-02-28 10:44:14 +01:00
Salvatore Sanfilippo
7a73db7512
Merge pull request #4715 from charsyam/feature/refactoring-make-condition-clear-for-rdb
...
[BugFix] fix calculation length in rdbSaveAuxField
2018-02-27 10:15:27 -08:00
Salvatore Sanfilippo
c3934db151
Merge pull request #4715 from charsyam/feature/refactoring-make-condition-clear-for-rdb
...
[BugFix] fix calculation length in rdbSaveAuxField
2018-02-27 10:15:27 -08:00
antirez
92696e49d2
expireIfNeeded() needed a top comment documenting the behavior.
2018-02-27 16:44:43 +01:00
antirez
550181a96b
expireIfNeeded() needed a top comment documenting the behavior.
2018-02-27 16:44:43 +01:00
antirez
b00c4ffab5
expireIfNeeded() comment: claim -> pretend.
2018-02-27 16:37:37 +01:00
antirez
4db08588cc
expireIfNeeded() comment: claim -> pretend.
2018-02-27 16:37:37 +01:00
charsyam
76386c48b8
refactoring-make-condition-clear-for-rdb
2018-02-27 21:55:20 +09:00
charsyam
7bf2ef9dba
refactoring-make-condition-clear-for-rdb
2018-02-27 21:55:20 +09:00
charsyam
6168d5a1a6
fix-out-of-index-range-for-redis-cli-findbigkey
2018-02-27 21:46:19 +09:00
charsyam
aecbdde3c0
fix-out-of-index-range-for-redis-cli-findbigkey
2018-02-27 21:46:19 +09:00
antirez
956350ef89
ae.c: insetad of not firing, on AE_BARRIER invert the sequence.
...
AE_BARRIER was implemented like:
- Fire the readable event.
- Do not fire the writabel event if the readable fired.
However this may lead to the writable event to never be called if the
readable event is always fired. There is an alterantive, we can just
invert the sequence of the calls in case AE_BARRIER is set. This commit
does that.
2018-02-27 13:06:42 +01:00
antirez
b745b98f3d
ae.c: insetad of not firing, on AE_BARRIER invert the sequence.
...
AE_BARRIER was implemented like:
- Fire the readable event.
- Do not fire the writabel event if the readable fired.
However this may lead to the writable event to never be called if the
readable event is always fired. There is an alterantive, we can just
invert the sequence of the calls in case AE_BARRIER is set. This commit
does that.
2018-02-27 13:06:42 +01:00
antirez
75987431f0
AOF: fix a bug that may prevent proper fsyncing when fsync=always.
...
In case the write handler is already installed, it could happen that we
serve the reply of a query in the same event loop cycle we received it,
preventing beforeSleep() from guaranteeing that we do the AOF fsync
before sending the reply to the client.
The AE_BARRIER mechanism, introduced in a previous commit, prevents this
problem. This commit makes actual use of this new feature to fix the
bug.
2018-02-27 13:06:42 +01:00
antirez
5a57c953c9
AOF: fix a bug that may prevent proper fsyncing when fsync=always.
...
In case the write handler is already installed, it could happen that we
serve the reply of a query in the same event loop cycle we received it,
preventing beforeSleep() from guaranteeing that we do the AOF fsync
before sending the reply to the client.
The AE_BARRIER mechanism, introduced in a previous commit, prevents this
problem. This commit makes actual use of this new feature to fix the
bug.
2018-02-27 13:06:42 +01:00
antirez
533d0e0375
Cluster: improve crash-recovery safety after failover auth vote.
...
Add AE_BARRIER to the writable event loop so that slaves requesting
votes can't be served before we re-enter the event loop in the next
iteration, so clusterBeforeSleep() will fsync to disk in time.
Also add the call to explicitly fsync, given that we modified the last
vote epoch variable.
2018-02-27 13:06:42 +01:00