Skip to content

Commit dc55677

Browse files
committed
Fix buf in calculating snapshot xmax in dtmd
1 parent 61ace5e commit dc55677

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/pg_xtm/dtmd/src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ static void gen_snapshot(Snapshot *s, int node) {
364364
s->active[s->nactive++] = t->xid;
365365
}
366366
}
367+
if (s->xmax == 0) {
368+
s->xmin = s->xmax + 1;
369+
}
367370
snapshot_sort(s);
368371
}
369372

0 commit comments

Comments
 (0)