Skip to content

Commit 1728185

Browse files
committed
Do not check for leader role if not using raft in DTMD.
1 parent b9b69d8 commit 1728185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_dtm/dtmd/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static void debug_cmd(client_t client, int argc, xid_t *argv) {
216216
} while (0)
217217

218218
#define CHECKLEADER(CLIENT) \
219-
CHECK(raft.role == ROLE_LEADER, CLIENT, "not a leader")
219+
CHECK(!use_raft || (raft.role == ROLE_LEADER), CLIENT, "not a leader")
220220

221221
static xid_t max_of_xids(xid_t a, xid_t b) {
222222
return a > b ? a : b;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy