Skip to content

Commit

Permalink
This workaround should fix bug CORE-5582 : Segmentation fault in TRA_…
Browse files Browse the repository at this point in the history
…detach_request
  • Loading branch information
hvlad committed Jul 14, 2017
1 parent b9c18ff commit 1a6bcde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/jrd/cmp.cpp
Expand Up @@ -739,7 +739,10 @@ void CMP_fini(thread_db* tdbb)
{
if (*itr)
{
fb_assert((*itr)->req_transaction == NULL)

(*itr)->req_attachment = NULL;
(*itr)->req_transaction = NULL;
CMP_release(tdbb, *itr);
}
}
Expand All @@ -748,7 +751,10 @@ void CMP_fini(thread_db* tdbb)
{
if (*itr)
{
fb_assert((*itr)->req_transaction == NULL)

(*itr)->req_attachment = NULL;
(*itr)->req_transaction = NULL;
CMP_release(tdbb, *itr);
}
}
Expand Down

0 comments on commit 1a6bcde

Please sign in to comment.