Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9926d5d

Browse files
committed
mtm.get_nodes_state(): Set RecieverStartTime, SenderStartTime, SenderPid, ReceiverPid to NULL for current node
1 parentced7603 commit9926d5d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎multimaster.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3992,10 +3992,20 @@ mtm_get_nodes_state(PG_FUNCTION_ARGS)
39923992
usrfctx->values[7]=Int64GetDatum(Mtm->transCount ?Mtm->nodes[usrfctx->nodeId-1].transDelay/Mtm->transCount :0);
39933993
usrfctx->values[8]=TimestampTzGetDatum(time_t_to_timestamptz(Mtm->nodes[usrfctx->nodeId-1].lastStatusChangeTime/USECS_PER_SEC));
39943994
usrfctx->values[9]=Int64GetDatum(Mtm->nodes[usrfctx->nodeId-1].oldestSnapshot);
3995+
39953996
usrfctx->values[10]=Int32GetDatum(Mtm->nodes[usrfctx->nodeId-1].senderPid);
39963997
usrfctx->values[11]=TimestampTzGetDatum(time_t_to_timestamptz(Mtm->nodes[usrfctx->nodeId-1].senderStartTime/USECS_PER_SEC));
39973998
usrfctx->values[12]=Int32GetDatum(Mtm->nodes[usrfctx->nodeId-1].receiverPid);
3998-
usrfctx->values[13]=TimestampTzGetDatum(time_t_to_timestamptz(Mtm->nodes[usrfctx->nodeId-1].receiverStartTime/USECS_PER_SEC));
3999+
usrfctx->values[13]=TimestampTzGetDatum(time_t_to_timestamptz(Mtm->nodes[usrfctx->nodeId-1].receiverStartTime/USECS_PER_SEC));
4000+
4001+
if (usrfctx->nodeId==MtmNodeId)
4002+
{
4003+
usrfctx->nulls[10]= true;
4004+
usrfctx->nulls[11]= true;
4005+
usrfctx->nulls[12]= true;
4006+
usrfctx->nulls[13]= true;
4007+
}
4008+
39994009
usrfctx->values[14]=CStringGetTextDatum(Mtm->nodes[usrfctx->nodeId-1].con.connStr);
40004010
usrfctx->values[15]=Int64GetDatum(Mtm->nodes[usrfctx->nodeId-1].connectivityMask);
40014011
usrfctx->values[16]=Int64GetDatum(Mtm->nodes[usrfctx->nodeId-1].nHeartbeats);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp