From d39a1cc1d4f874e398f87a6778a868ec1f9178eb Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 30 Sep 2024 12:21:59 +1000 Subject: [PATCH] ctdb-server: Use ctdb_connection_same() to simplify Signed-off-by: Martin Schwenke Reviewed-by: Volker Lendecke Reviewed-by: Jerry Heyman --- ctdb/server/ctdb_takeover.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c index d71c8863599..dc4fcf395b7 100644 --- a/ctdb/server/ctdb_takeover.c +++ b/ctdb/server/ctdb_takeover.c @@ -1497,8 +1497,7 @@ static struct ctdb_connection *ctdb_tcp_find(struct ctdb_tcp_array *array, } for (i=0;inum;i++) { - if (ctdb_same_sockaddr(&array->connections[i].src, &tcp->src) && - ctdb_same_sockaddr(&array->connections[i].dst, &tcp->dst)) { + if (ctdb_connection_same(&array->connections[i], tcp)) { return &array->connections[i]; } }