We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a7a7f4 commit 79bcb3cCopy full SHA for 79bcb3c
state.c
@@ -622,3 +622,16 @@ MtmRefereeClearWinner(void)
622
PQfinish(conn);
623
return true;
624
}
625
+
626
+/*
627
+ * Mtm current status accessor.
628
+ */
629
+MtmNodeStatus
630
+MtmGetCurrentStatus()
631
+{
632
+ volatile MtmNodeStatus status;
633
+ MtmLock(LW_SHARED);
634
+ status = Mtm->status;
635
+ MtmUnlock();
636
+ return status;
637
+}
state.h
@@ -33,3 +33,5 @@ extern void MtmReconnectNode(int nodeId);
33
extern void MtmRefreshClusterStatus(void);
34
35
extern int countZeroBits(nodemask_t mask, int nNodes);
36
37
+extern MtmNodeStatus MtmGetCurrentStatus(void);
0 commit comments