8000 Correctly init fast path fields on PGPROC · postgrespro/postgres_cluster@d3fe599 · GitHub
[go: up one dir, main page]

Skip to content

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

Appearance settings

Commit d3fe599

Browse files
Correctly init fast path fields on PGPROC
1 parent f1e57a4 commit d3fe599

File tree

1 file changed

+4
-0
lines changed
  • src/backend/storage/lmgr

1 file changed

+4
-0
lines changed

src/backend/storage/lmgr/proc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ InitProcess(void)
341341
SHMQueueElemInit(&(MyProc->links));
342342
MyProc->waitStatus = STATUS_OK;
343343
MyProc->lxid = InvalidLocalTransactionId;
344+
MyProc->fpVXIDLock = false;
345+
MyProc->fpLocalTransactionId = InvalidLocalTransactionId;
344346
MyPgXact->xid = InvalidTransactionId;
345347
MyPgXact->xmin = InvalidTransactionId;
346348
MyProc->pid = MyProcPid;
@@ -507,6 +509,8 @@ InitAuxiliaryProcess(void)
507509
SHMQueueElemInit(&(MyProc->links));
508510
MyProc->waitStatus = STATUS_OK;
509511
MyProc->lxid = InvalidLocalTransactionId;
512+
MyProc->fpVXIDLock = false;
513+
MyProc->fpLocalTransactionId = InvalidLocalTransactionId;
510514
MyPgXact->xid = InvalidTransactionId;
511515
MyPgXact->xmin = InvalidTransactionId;
512516
MyProc->backendId = InvalidBackendId;

0 commit comments

Comments
 (0)
0