John Sully
cddcd632ca
All tests runs pass! YAYgit add src/cluster.c src/config.c !
...
Former-commit-id: 59051dd59d90714a13d6e3676f9691b2220b39c3
2019-04-04 01:02:19 -04:00
John Sully
249ac16a6a
Cluster tests shouldn't crash (note: still not passing either)
...
Former-commit-id: e63b2880b050d64849daf17d81cd0d4cabf2277a
2019-04-02 22:32:10 -04:00
John Sully
5d3c28a902
It compiles and doesn't crash immediately!
...
Former-commit-id: efaeca588717ca7cd44aa3502672d158acd94a6d
2019-04-02 16:47:05 -04:00
John Sully
f11840f6b2
Merge branch 'unstable' of https://github.com/antirez/redis into unstable
...
Former-commit-id: 9322d604eea7b48df3feff47ce2c04f82291228f
2019-03-21 20:15:59 -04:00
Yossi Gottlieb
dd405d4026
Add RedisModule_GetKeyNameFromIO().
2019-03-15 10:23:27 +02:00
John Sully
6702b89166
Merge branch 'unstable' of https://github.com/antirez/redis into unstable
...
Lots of fixes and improvements from upstream.
Former-commit-id: 261cf24efc8bedec7ee76a8897b9a800a4d663e2
2019-03-13 18:08:22 -04:00
John Sully
25c2050c3a
Module threading fixes
...
Former-commit-id: 2785a8b4d40b09caea5e209ab49fc5f1484981a8
2019-03-07 19:13:01 -05:00
chendianqiang
934dbc25df
optimize cluster failover
2019-03-01 15:28:21 +08:00
John Sully
8cd2cdca3d
Merge branch 'unstable' of https://github.com/antirez/redis into Multithread
2019-02-21 18:17:12 -05:00
John Sully
627c19e02f
Multithreading works!
2019-02-20 01:20:26 -05:00
John Sully
0914b52ffa
Thread safety fixes
2019-02-18 22:25:35 -05:00
John Sully
65e48b868e
Load balance connections across threads (config NYI and hardcoded)
2019-02-16 14:26:19 -05:00
John Sully
6059bc7e67
Initial work of multithreaded key-db. Note: Fails tests
2019-02-11 03:36:18 -05:00
John Sully
f6736cd713
Reduce memory usage for in place strings by 8 bytes
2019-02-09 13:04:18 -05:00
John Sully
dac1213462
complete rebranding with tests passing
2019-02-09 10:11:46 -05:00
John Sully
cd8145e314
Make main headers C++ safe, and change rdb to use file descriptor instead of FILE pointer
2019-02-05 23:36:40 -05:00
John Sully
3e61388df3
complete malloc memory class work, and pass tests
2019-02-04 16:56:13 -05:00
John Sully
bac51d5ac4
Custom flash heap
2019-01-29 18:10:46 -05:00
antirez
c8304b099d
RESP3: most null replies converted.
2019-01-09 17:00:29 +01:00
antirez
43ee60204f
RESP3: Use new aggregate reply API in cluster.c.
2019-01-09 17:00:29 +01:00
antirez
63787d5cbc
Use guide comments to make changes in #5462 more obvious.
2018-10-22 17:43:48 +02:00
youjiali1995
e29c6573b9
migrate: fix mismatch of RESTORE reply when some keys have expired.
2018-10-18 18:57:51 +08:00
antirez
587db27252
Module cluster flags: add RM_SetClusterFlags() API.
2018-09-19 12:02:37 +02:00
antirez
6b30cb52da
Module cluster flags: add hooks for NO_FAILOVER flag.
2018-09-19 11:43:37 +02:00
antirez
ebf0968a38
Module cluster flags: add hooks for NO_REDIRECTION flag.
2018-09-19 11:31:22 +02:00
antirez
96ceafbe4d
Module cluster flags: initial vars / defines added.
2018-09-19 11:20:52 +02:00
antirez
3b87cad43d
Slave removal: Convert cluster.c log messages and command names.
2018-09-11 15:32:28 +02:00
antirez
b20e5b3aa3
Cluster cron announce IP minor refactoring.
2018-07-31 17:13:03 +02:00
shenlongxing
0497fb5a00
Fix cluster-announce-ip memory leak
2018-07-31 16:01:44 +08:00
antirez
de401f46fd
Example the magic +1 in migrateCommand().
...
Related to #5154 .
2018-07-24 17:31:43 +02:00
antirez
61ca1840f1
Make changes of PR #5154 hopefully simpler.
2018-07-24 17:27:43 +02:00
WuYunlong
eba8dbdce4
Do not migrate already expired keys.
2018-07-21 10:00:32 +08:00
Jack Drogon
bae1d36e5d
Fix typo
2018-07-03 18:19:46 +02:00
antirez
938d879c2a
addReplySubSyntaxError() renamed to addReplySubcommandSyntaxError().
2018-07-02 18:49:34 +02:00
Salvatore Sanfilippo
c44be0ab9b
Merge pull request #4998 from itamarhaber/module_command_help
...
Module command help
2018-07-02 18:46:56 +02:00
Guy Benoish
52e246cdb3
Fix compiler warning in restoreCommand
2018-06-24 16:53:01 +07:00
Guy Benoish
4330bc3e3a
Enhance RESTORE with RDBv9 new features
...
RESTORE now supports:
1. Setting LRU/LFU
2. Absolute-time TTL
Other related changes:
1. RDB loading will not override LRU bits when RDB file
does not contain the LRU opcode.
2. RDB loading will not set LRU/LFU bits if the server's
maxmemory-policy does not match.
2018-06-20 15:11:08 +07:00
antirez
d6cb53ee07
Modify clusterRedirectClient() to handle ZPOP and XREAD.
2018-06-19 15:53:32 +02:00
Itamar Haber
852a6b305e
Capitalizes subcommands & orders lexicographically
2018-06-09 21:03:52 +03:00
Itamar Haber
8f2e77dd23
Globally applies addReplySubSyntaxError
2018-06-07 18:39:36 +03:00
antirez
482a5dcefa
Typo: entires -> entries in several places.
2018-06-07 14:36:56 +02:00
shenlongxing
a35bf3f130
Fix write() errno error
2018-06-06 13:06:42 +02:00
antirez
055ab3623b
Modules Cluster API: make node IDs pointers constant.
2018-03-30 13:16:07 +02:00
antirez
72f11ded18
Modules Cluster API: message bus implementation.
2018-03-29 15:13:31 +02:00
Salvatore Sanfilippo
91030e4d18
Merge pull request #4722 from charsyam/feature/refactoring-call-aeDeleteFileEvent-twice-in-freeClusterLink
...
Refactoring to call aeDeleteFileEvent twice as once
2018-03-22 16:23:40 +01:00
antirez
b94379e29a
Cluster: ability to prevent slaves from failing over their masters.
...
This commit, in some parts derived from PR #3041 which is no longer
possible to merge (because the user deleted the original branch),
implements the ability of slaves to have a special configuration
preventing that they try to start a failover when the master is failing.
There are multiple reasons for wanting this, and the feautre was
requested in issue #3021 time ago.
The differences between this patch and the original PR are the
following:
1. The flag is saved/loaded on the nodes configuration.
2. The 'myself' node is now flag-aware, the flag is updated as needed
when the configuration is changed via CONFIG SET.
3. The flag name uses NOFAILOVER instead of NO_FAILOVER to be consistent
with existing NOADDR.
4. The redis.conf documentation was rewritten.
Thanks to @deep011 for the original patch.
2018-03-14 14:01:38 +01:00
charsyam
9cffb97d8e
refactoring-call-aeDeleteFileEvent-twice-in-freeClusterLink
2018-03-01 22:30:39 +09:00
antirez
17cbb54919
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
antirez
85060ac4bf
Fix migrateCommand() access of not initialized byte.
2018-01-18 12:41:05 +01:00
antirez
8dbcf05e91
Rewrite MIGRATE AUTH option.
...
See PR #2507 . This is a reimplementation of the fix that contained
different problems.
2018-01-09 18:48:26 +01:00