summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-10-11 07:39:09 -0400
committerRobert Haas <rhaas@postgresql.org>2011-10-11 07:39:09 -0400
commite76bcaba9cb330b32e9a80dfe9cd510d802121c4 (patch)
treeac45e2817f5276f9526dd0f25d9a1fcd70514d1f
parent5b9102cef2edcc621daef423d42969b517359136 (diff)
downloadpostgresql-e76bcaba9cb330b32e9a80dfe9cd510d802121c4.tar.gz
Repair breakage in VirtualXactLock.
I broke this in commit 84e37126770dd6de903dad88ce150a49b63b5ef9. Report and fix by Fujii Masao.
-rw-r--r--src/backend/storage/lmgr/lock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index a1ce5d8b8a..905502f145 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -3675,6 +3675,8 @@ VirtualXactLock(VirtualTransactionId vxid, bool wait)
* it's no longer running anywhere.
*/
proc = BackendIdGetProc(vxid.backendId);
+ if (proc == NULL)
+ return true;
/*
* We must acquire this lock before checking the backendId and lxid