1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

ctdb-protocol: Add server and client aliases in ctdb_connection

The current code is ambiguous in its use of src and dst.  This allows
new code to use server and client for clarity.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Martin Schwenke 2017-09-04 16:20:55 +10:00 committed by Martin Schwenke
parent 3816270c76
commit eb32b8d3a0

View File

@ -555,8 +555,14 @@ typedef union {
} ctdb_sock_addr;
struct ctdb_connection {
ctdb_sock_addr src;
ctdb_sock_addr dst;
union {
ctdb_sock_addr src;
ctdb_sock_addr server;
};
union {
ctdb_sock_addr dst;
ctdb_sock_addr client;
};
};
struct ctdb_tunable {