Salvatore Sanfilippo
174e51cb75
Merge pull request #967 from 0x20h/fix-git-diff
...
suppress external diff program when using git diff.
2013-03-04 01:57:01 -08:00
Stam He
e795f82438
point 2 of slave-serve-stale-data miss '-' between 'stale' and 'data'
2013-03-04 10:49:07 +01:00
Stam He
d783860457
point 2 of slave-serve-stale-data miss '-' between 'stale' and 'data'
2013-03-04 10:49:07 +01:00
antirez
19833a01f2
Cluster: don't set the slot as unassigned because of PONG info.
...
As stated in the comment this is usually due to a resharding in progress
so the client should be still redirected to the old node that will
handle the redirection elsewhere.
2013-02-28 15:54:29 +01:00
antirez
caf9b24a7d
Cluster: don't set the slot as unassigned because of PONG info.
...
As stated in the comment this is usually due to a resharding in progress
so the client should be still redirected to the old node that will
handle the redirection elsewhere.
2013-02-28 15:54:29 +01:00
antirez
de254ffdb4
Cluster: better handling of slots changes in PONG packets.
...
The new code makes sure that the node slots bitmap is always consistent
with the cluster->slots array.
2013-02-28 15:41:54 +01:00
antirez
0d77440b26
Cluster: better handling of slots changes in PONG packets.
...
The new code makes sure that the node slots bitmap is always consistent
with the cluster->slots array.
2013-02-28 15:41:54 +01:00
antirez
4d353074ba
Cluster: refactoring of clusterNode*Bit to use helper bitmap functions.
2013-02-28 15:23:09 +01:00
antirez
5f8fd27ace
Cluster: refactoring of clusterNode*Bit to use helper bitmap functions.
2013-02-28 15:23:09 +01:00
antirez
a535d4b477
Cluster: use node->numslots instead of popcount() where possible.
2013-02-28 15:13:32 +01:00
antirez
d21d6b666f
Cluster: use node->numslots instead of popcount() where possible.
2013-02-28 15:13:32 +01:00
antirez
7348dbc52c
Cluster: new field in cluster node structure, "numslots".
...
Before a relatively slow popcount() operation was needed every time we
needed to get the number of slots served by a given cluster node.
Now we just need to check an integer that is taken in sync with the
bitmap.
2013-02-28 15:11:05 +01:00
antirez
4521115b17
Cluster: new field in cluster node structure, "numslots".
...
Before a relatively slow popcount() operation was needed every time we
needed to get the number of slots served by a given cluster node.
Now we just need to check an integer that is taken in sync with the
bitmap.
2013-02-28 15:11:05 +01:00
antirez
bee0907fa4
Cluster: don't gossip about nodes that are not useful to the cluster.
2013-02-28 15:00:09 +01:00
antirez
a2566d6618
Cluster: don't gossip about nodes that are not useful to the cluster.
2013-02-28 15:00:09 +01:00
antirez
5e5b822277
redis-trib: skip nodes without slots when creating the config signature.
2013-02-28 13:12:56 +01:00
antirez
bc922dc688
redis-trib: skip nodes without slots when creating the config signature.
2013-02-28 13:12:56 +01:00
antirez
f7e497ce38
redis-trib help.
2013-02-27 18:02:22 +01:00
antirez
64942fca01
redis-trib help.
2013-02-27 18:02:22 +01:00
antirez
1faf992b16
Cluster: CLUSTER FORGET implemented.
2013-02-27 17:55:59 +01:00
antirez
d45d184118
Cluster: CLUSTER FORGET implemented.
2013-02-27 17:55:59 +01:00
antirez
fae00c9998
Cluster: added a missing return on CLUSTER SETSLOT.
2013-02-27 17:53:48 +01:00
antirez
d2b8281b3f
Cluster: added a missing return on CLUSTER SETSLOT.
2013-02-27 17:53:48 +01:00
antirez
8d4ae49ece
redis-trib: skip noaddr and disconnected nodes while loading cluster info.
2013-02-27 17:23:11 +01:00
antirez
7ddc0fe652
redis-trib: skip noaddr and disconnected nodes while loading cluster info.
2013-02-27 17:23:11 +01:00
antirez
1841332778
Cluster: blank node address when flagging it as NOADDR.
2013-02-27 17:09:33 +01:00
antirez
d20dea3eb7
Cluster: blank node address when flagging it as NOADDR.
2013-02-27 17:09:33 +01:00
antirez
48718d5dad
Cluster: add comments in sub-sections of CLUSTER command.
2013-02-27 16:12:59 +01:00
antirez
2dcb5ab72b
Cluster: add comments in sub-sections of CLUSTER command.
2013-02-27 16:12:59 +01:00
antirez
5b28421929
redis-trib: initial implementation of addnode command.
2013-02-27 15:58:41 +01:00
antirez
96dd210970
redis-trib: initial implementation of addnode command.
2013-02-27 15:58:41 +01:00
antirez
cabbb64d80
Remove warning when printing redisBuildId().
2013-02-27 12:33:27 +01:00
antirez
f7dac639a9
Remove warning when printing redisBuildId().
2013-02-27 12:33:27 +01:00
antirez
c3a453268b
Remove too agressive/spamming log in rdb.c.
2013-02-27 12:29:20 +01:00
antirez
e4682c82e3
Remove too agressive/spamming log in rdb.c.
2013-02-27 12:29:20 +01:00
antirez
646785ae48
Use GCC printf format attribute for redisLog().
...
This commit also fixes redisLog() statements producing warnings.
2013-02-27 12:27:15 +01:00
antirez
f9b5ca29fd
Use GCC printf format attribute for redisLog().
...
This commit also fixes redisLog() statements producing warnings.
2013-02-27 12:27:15 +01:00
antirez
3fe686b697
Better panic message for failed time event creation.
2013-02-27 12:00:11 +01:00
antirez
c35b065a64
Better panic message for failed time event creation.
2013-02-27 12:00:11 +01:00
Stam He
df3489aeb7
add a check for aeCreateTimeEvent
...
1) Add a check for aeCreateTimeEvent in function initServer.
2013-02-27 11:57:35 +01:00
Stam He
e431a97660
add a check for aeCreateTimeEvent
...
1) Add a check for aeCreateTimeEvent in function initServer.
2013-02-27 11:57:35 +01:00
Stam He
2fabb412ca
Set proctitle: avoid the use of __attribute__((constructor)).
...
This cased a segfault in some Linux system and was GCC-specific.
Commit modified by @antirez:
1) Stripped away the part to set the proc title via config for now.
2) Handle initialization of setproctitle only when the replacement
is used.
3) Don't require GCC now that the attribute constructor is no
longer used.
2013-02-27 11:50:35 +01:00
Stam He
9c8be6cab9
Set proctitle: avoid the use of __attribute__((constructor)).
...
This cased a segfault in some Linux system and was GCC-specific.
Commit modified by @antirez:
1) Stripped away the part to set the proc title via config for now.
2) Handle initialization of setproctitle only when the replacement
is used.
3) Don't require GCC now that the attribute constructor is no
longer used.
2013-02-27 11:50:35 +01:00
antirez
ac7f6bac6f
setproctitle.c: declar tmp as static so valgrind will not detect a leak.
2013-02-26 15:51:33 +01:00
antirez
deb1f4d841
setproctitle.c: declar tmp as static so valgrind will not detect a leak.
2013-02-26 15:51:33 +01:00
antirez
a63b1196e0
Cluster: a few random fixes to the new failure detection.
2013-02-26 15:15:44 +01:00
antirez
d0992d6e8b
Cluster: a few random fixes to the new failure detection.
2013-02-26 15:15:44 +01:00
antirez
2dec530e15
Cluster: log the event when we clear the FAIL flag.
2013-02-26 15:03:38 +01:00
antirez
f288b07563
Cluster: log the event when we clear the FAIL flag.
2013-02-26 15:03:38 +01:00
antirez
79212927fb
Cluster: use the failure report API to reimplement failure detection.
...
The new system detects a failure only when there is quorum from masters.
2013-02-26 14:58:39 +01:00