mirror of https://github.com/redis/redis.git
Fix typos in comments and improve readability (#8899)
This commit is contained in:
parent
ccb76e5688
commit
f3ee2d98af
|
|
@ -3351,10 +3351,10 @@ void clusterHandleSlaveMigration(int max_slaves) {
|
|||
*
|
||||
* Note: this means that eventually a replica migration will occur
|
||||
* since slaves that are reachable again always have their FAIL flag
|
||||
* cleared, so eventually there must be a candidate. At the same time
|
||||
* this does not mean that there are no race conditions possible (two
|
||||
* slaves migrating at the same time), but this is unlikely to
|
||||
* happen, and harmless when happens. */
|
||||
* cleared, so eventually there must be a candidate.
|
||||
* There is a possible race condition causing multiple
|
||||
* slaves to migrate at the same time, but this is unlikely to
|
||||
* happen and relatively harmless when it does. */
|
||||
candidate = myself;
|
||||
di = dictGetSafeIterator(server.cluster->nodes);
|
||||
while((de = dictNext(di)) != NULL) {
|
||||
|
|
@ -3949,7 +3949,7 @@ void clusterUpdateState(void) {
|
|||
* master, after a reboot, without giving the cluster a chance to
|
||||
* reconfigure this node. Note that the delay is calculated starting from
|
||||
* the first call to this function and not since the server start, in order
|
||||
* to don't count the DB loading time. */
|
||||
* to not count the DB loading time. */
|
||||
if (first_call_time == 0) first_call_time = mstime();
|
||||
if (nodeIsMaster(myself) &&
|
||||
server.cluster->state == CLUSTER_FAIL &&
|
||||
|
|
|
|||
|
|
@ -6200,13 +6200,13 @@ int RM_GetClusterNodeInfo(RedisModuleCtx *ctx, const char *id, char *ip, char *m
|
|||
*
|
||||
* With the following effects:
|
||||
*
|
||||
* * NO_FAILOVER: prevent Redis Cluster slaves to failover a failing master.
|
||||
* * NO_FAILOVER: prevent Redis Cluster slaves from failing over a dead master.
|
||||
* Also disables the replica migration feature.
|
||||
*
|
||||
* * NO_REDIRECTION: Every node will accept any key, without trying to perform
|
||||
* partitioning according to the user Redis Cluster algorithm.
|
||||
* Slots informations will still be propagated across the
|
||||
* cluster, but without effects. */
|
||||
* partitioning according to the Redis Cluster algorithm.
|
||||
* Slots information will still be propagated across the
|
||||
* cluster, but without effect. */
|
||||
void RM_SetClusterFlags(RedisModuleCtx *ctx, uint64_t flags) {
|
||||
UNUSED(ctx);
|
||||
if (flags & REDISMODULE_CLUSTER_FLAG_NO_FAILOVER)
|
||||
|
|
|
|||
Loading…
Reference in New Issue