Skip to content

Commit

Permalink
Fixed bug CORE-3524 : Compiling stored procedure while in use shutdow…
Browse files Browse the repository at this point in the history
…n database
  • Loading branch information
hvlad committed Jun 17, 2011
1 parent 44975a7 commit b3cc1c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/jrd/cmp.cpp
Expand Up @@ -2409,6 +2409,18 @@ void CMP_release(thread_db* tdbb, jrd_req* request)
}
}

vec<jrd_req*>* vector = request->req_sub_requests;
if (vector)
{
vec<jrd_req*>::const_iterator sub_req = vector->begin();
vec<jrd_req*>::const_iterator end = vector->end();
for (; sub_req < end; ++sub_req)
{
if (*sub_req)
EXE_unwind(tdbb, *sub_req);
}
}

EXE_unwind(tdbb, request);

if (request->req_attachment) {
Expand Down

0 comments on commit b3cc1c2

Please sign in to comment.