From c1de5f70a3901398a40d24445d8527e48c6c3ded Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 11 Oct 2011 07:39:09 -0400 Subject: [PATCH] Repair breakage in VirtualXactLock. I broke this in commit 84e37126770dd6de903dad88ce150a49b63b5ef9. Report and fix by Fujii Masao. --- src/backend/storage/lmgr/lock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 05ea6e2d25..c8a1edb66f 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -3731,6 +3731,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 -- 2.39.5