Skip to content

Commit 61ace5e

Browse files
committed
Link client id with global transaction when a client asks for a snapshot.
1 parent df36fe2 commit 61ace5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/pg_xtm/dtmd/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ static char *onsnapshot(void *stream, void *clientdata, cmd_t *cmd) {
411411

412412
GlobalTransaction *gt = &transactions[i];
413413
Transaction *t = &gt->participants[node];
414+
t->client_id = CLIENT_ID(clientdata);
414415
if (t->snapshot_no == gt->n_snapshots) {
415416
gen_snapshots(gt);
416417
}

0 commit comments

Comments
 (0)