Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 910efc6

Browse files
committed
remove dead_node_mask from mtm_get_cluster_state
1 parent e5344a7 commit 910efc6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

multimaster--1.0.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ CREATE TYPE mtm.cluster_state AS (
9797
"config_changes" integer,
9898
"stalled_node_mask" bigint,
9999
"stopped_node_mask" bigint,
100-
"dead_node_mask" bigint,
101100
"last_status_change" timestamp
102101
);
103102

multimaster.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4222,8 +4222,7 @@ mtm_get_cluster_state(PG_FUNCTION_ARGS)
42224222
values[16] = Int32GetDatum(Mtm->nConfigChanges);
42234223
values[17] = Int64GetDatum(Mtm->stalledNodeMask);
42244224
values[18] = Int64GetDatum(Mtm->stoppedNodeMask);
4225-
values[19] = Int64GetDatum(Mtm->deadNodeMask);
4226-
values[20] = TimestampTzGetDatum(time_t_to_timestamptz(Mtm->nodes[MtmNodeId-1].lastStatusChangeTime/USECS_PER_SEC));
4225+
values[19] = TimestampTzGetDatum(time_t_to_timestamptz(Mtm->nodes[MtmNodeId-1].lastStatusChangeTime/USECS_PER_SEC));
42274226

42284227
PG_RETURN_DATUM(HeapTupleGetDatum(heap_form_tuple(desc, values, nulls)));
42294228
}

multimaster.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292

9393
#define Natts_mtm_trans_state 15
9494
#define Natts_mtm_nodes_state 17
95-
#define Natts_mtm_cluster_state 21
95+
#define Natts_mtm_cluster_state 20
9696

9797
typedef ulong64 csn_t; /* commit serial number */
9898
#define INVALID_CSN ((csn_t)-1)

0 commit comments

Comments
 (0)