Skip to content

Commit 9d31768

Browse files
authored
Fix a couple of tabs that caused misindentation (redis#12541)
Fixed some usages of tabs which caused weird indentation in the code. Tried to find all of the places so their was one PR. I ignored all of the usages of tabs which don't really affect readability.
1 parent 4ba9e18 commit 9d31768

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/cluster.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,7 +2580,7 @@ uint32_t writePingExt(clusterMsg *hdr, int gossipcount) {
25802580
clusterMsgPingExtHumanNodename *ext = preparePingExt(cursor, CLUSTERMSG_EXT_TYPE_HUMAN_NODENAME, getHumanNodenamePingExtSize());
25812581
memcpy(ext->human_nodename, myself->human_nodename, sdslen(myself->human_nodename));
25822582

2583-
/* Move the write cursor */
2583+
/* Move the write cursor */
25842584
cursor = nextPingExt(cursor);
25852585
}
25862586

@@ -2646,7 +2646,7 @@ void clusterProcessPingExtensions(clusterMsg *hdr, clusterLink *link) {
26462646
if (type == CLUSTERMSG_EXT_TYPE_HOSTNAME) {
26472647
clusterMsgPingExtHostname *hostname_ext = (clusterMsgPingExtHostname *) &(ext->ext[0].hostname);
26482648
ext_hostname = hostname_ext->hostname;
2649-
} else if (type == CLUSTERMSG_EXT_TYPE_HUMAN_NODENAME) {
2649+
} else if (type == CLUSTERMSG_EXT_TYPE_HUMAN_NODENAME) {
26502650
clusterMsgPingExtHumanNodename *humannodename_ext = (clusterMsgPingExtHumanNodename *) &(ext->ext[0].human_nodename);
26512651
ext_humannodename = humannodename_ext->human_nodename;
26522652
} else if (type == CLUSTERMSG_EXT_TYPE_FORGOTTEN_NODE) {
@@ -4247,7 +4247,7 @@ void clusterHandleSlaveFailover(void) {
42474247
if (server.cluster->mf_end) {
42484248
server.cluster->failover_auth_time = mstime();
42494249
server.cluster->failover_auth_rank = 0;
4250-
clusterDoBeforeSleep(CLUSTER_TODO_HANDLE_FAILOVER);
4250+
clusterDoBeforeSleep(CLUSTER_TODO_HANDLE_FAILOVER);
42514251
}
42524252
serverLog(LL_NOTICE,
42534253
"Start of election delayed for %lld milliseconds "
@@ -4783,7 +4783,7 @@ void clusterCron(void) {
47834783
* a migration if there is no master with at least *two* working
47844784
* slaves. */
47854785
if (orphaned_masters && max_slaves >= 2 && this_slaves == max_slaves &&
4786-
server.cluster_allow_replica_migration)
4786+
server.cluster_allow_replica_migration)
47874787
clusterHandleSlaveMigration(max_slaves);
47884788
}
47894789

src/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2387,7 +2387,7 @@ static int isValidShutdownOnSigFlags(int val, const char **err) {
23872387
static int isValidAnnouncedNodename(char *val,const char **err) {
23882388
if (!(isValidAuxString(val,sdslen(val)))) {
23892389
*err = "Announced human node name contained invalid character";
2390-
return 0;
2390+
return 0;
23912391
}
23922392
return 1;
23932393
}

src/redis-cli.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3278,8 +3278,8 @@ static int isSensitiveCommand(int argc, char **argv) {
32783278
!strcasecmp(argv[1],"set")) {
32793279
for (int j = 2; j < argc; j = j+2) {
32803280
if (!strcasecmp(argv[j],"masterauth") ||
3281-
!strcasecmp(argv[j],"masteruser") ||
3282-
!strcasecmp(argv[j],"requirepass")) {
3281+
!strcasecmp(argv[j],"masteruser") ||
3282+
!strcasecmp(argv[j],"requirepass")) {
32833283
return 1;
32843284
}
32853285
}

src/zmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ size_t zmalloc_get_rss(void) {
608608
if ((fd = open(filename,O_RDONLY)) == -1) return 0;
609609
if (ioctl(fd, PIOCPSINFO, &info) == -1) {
610610
close(fd);
611-
return 0;
611+
return 0;
612612
}
613613

614614
close(fd);

0 commit comments

Comments
 (0)