Skip to content

Commit

Permalink
Merge pull request #1 from shenwen2012/filter-localhost-round-robin-g…
Browse files Browse the repository at this point in the history
…lusterd-server

change connect glusterd addr filter localhost (gluster#4442)
  • Loading branch information
shenwen2012 authored Dec 20, 2024
2 parents 7663679 + 01f8c2a commit 92131a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion glusterfsd/src/glusterfsd-mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2830,7 +2830,10 @@ mgmt_rpc_notify(struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event,
"Exhausted all volfile servers, Retrying from again!");
}
} else {
server = list_entry(server->list.next, typeof(*server), list);
char *local_str="127.0.0.1";
if (strncmp(local_str,rpc_trans->myinfo.identifier,strlen(local_str)) != 0) {
server = list_entry(server->list.next, typeof(*server), list);
}
}
ctx->cmd_args.curr_server = server;
ctx->cmd_args.volfile_server = server->volfile_server;
Expand Down

0 comments on commit 92131a2

Please sign in to comment.