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)
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