Skip to content

Commit

Permalink
Fixed CORE-2347: "Deadlock. Page type <N> lock conversion denied" err…
Browse files Browse the repository at this point in the history
…or is reported under a concurrent "connect-work-disconnect" kind of load.
  • Loading branch information
dyemanov committed Feb 27, 2009
1 parent 598b323 commit 8576856
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lock/lock.cpp
Expand Up @@ -1266,6 +1266,7 @@ void LockManager::blocking_action(thread_db* tdbb,
}

if (routine) {
owner->own_count++;
release_shmem(blocked_owner_offset);
m_localMutex.leave();
if (tdbb)
Expand All @@ -1280,8 +1281,12 @@ void LockManager::blocking_action(thread_db* tdbb,
m_localMutex.enter();
acquire_shmem(blocked_owner_offset);
owner = (own*) SRQ_ABS_PTR(blocking_owner_offset);
owner->own_count--;
}
}

if (!owner->own_count)
purge_owner(blocked_owner_offset, owner);
}


Expand Down

0 comments on commit 8576856

Please sign in to comment.