mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-protocol: Add srvid for messages during recovery
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
b1e8714bb8
commit
c5776f0529
@ -121,6 +121,9 @@ struct ctdb_call {
|
||||
/* SRVID prefix used by CTDB */
|
||||
#define CTDB_SRVID_PREFIX 0xF000000000000000LL
|
||||
|
||||
/* SRVID prefix used during recovery for pulling and pushing databases */
|
||||
#define CTDB_SRVID_RECOVERY 0xF001000000000000LL
|
||||
|
||||
/* SRVID to inform of election data */
|
||||
#define CTDB_SRVID_ELECTION 0xF100000000000000LL
|
||||
|
||||
|
@ -279,6 +279,9 @@ static void ctdb_srvid_print(uint64_t srvid, FILE *fp)
|
||||
|
||||
if (srvid == CTDB_SRVID_ALL) {
|
||||
fprintf(fp, "ALL");
|
||||
} else if ((srvid & prefix) == CTDB_SRVID_RECOVERY) {
|
||||
srvid = srvid & ~CTDB_SRVID_RECOVERY;
|
||||
fprintf(fp, "RECOVERY-%"PRIx64"", srvid);
|
||||
} else if (srvid == CTDB_SRVID_ELECTION) {
|
||||
fprintf(fp, "ELECTION");
|
||||
} else if (srvid == CTDB_SRVID_RECONFIGURE) {
|
||||
|
Loading…
Reference in New Issue
Block a user