8000 Repair breakage in VirtualXactLock. · postgrespro/postgres@e76bcab · GitHub
[go: up one dir, main page]

Skip to content
  • Commit e76bcab

    Browse files
    committed
    Repair breakage in VirtualXactLock.
    I broke this in commit 84e3712. Report and fix by Fujii Masao.
    1 parent 5b9102c commit e76bcab

    File tree

    1 file changed

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

    1 file changed

    +2
    -0
    lines changed

    src/backend/storage/lmgr/lock.c

    Lines changed: 2 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -3675,6 +3675,8 @@ VirtualXactLock(VirtualTransactionId vxid, bool wait)
    36753675
    * it's no longer running anywhere.
    36763676
    */
    36773677
    proc = BackendIdGetProc(vxid.backendId);
    3678+
    if (proc == NULL)
    3679+
    return true;
    36783680

    36793681
    /*
    36803682
    * We must acquire this lock before checking the backendId and lxid

    0 commit comments

    Comments
     (0)
    0