Skip to content

Commit eb3db1d

Browse files
committed
Fix bug in get_cluster_info
1 parent 8f1267c commit eb3db1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ MtmAdjustOldestXid(TransactionId xid)
461461
MtmTransState *ts = (MtmTransState*)hash_search(MtmXid2State, &xid, HASH_FIND, NULL);
462462
MTM_LOG2("%d: MtmAdjustOldestXid(%d): snapshot=%ld, csn=%ld, status=%d", MyProcPid, xid, ts != NULL ? ts->snapshot : 0, ts != NULL ? ts->csn : 0, ts != NULL ? ts->status : -1);
463463
Mtm->gcCount = 0;
464+
464465
if (ts != NULL) {
465466
oldestSnapshot = ts->snapshot;
466467
Mtm->nodes[MtmNodeId-1].oldestSnapshot = oldestSnapshot;
@@ -487,6 +488,7 @@ MtmAdjustOldestXid(TransactionId xid)
487488
}
488489
}
489490
}
491+
490492
if (MtmUseDtm)
491493
{
492494
if (prev != NULL) {
@@ -2537,7 +2539,6 @@ mtm_get_cluster_info(PG_FUNCTION_ARGS)
25372539
tuple = BuildTupleFromCStrings(funcctx->attinmeta, values);
25382540
PQclear(result);
25392541
PQfinish(conn);
2540-
usrfctx->nodeId += 1;
25412542
SRF_RETURN_NEXT(funcctx, HeapTupleGetDatum(tuple));
25422543
}
25432544

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