Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/jrd/dfw.epp
Original file line number Diff line number Diff line change
Expand Up @@ -2426,8 +2426,7 @@ static bool drop_package_body(thread_db* tdbb, SSHORT phase, DeferredWork* work,
case 6:
return true;
case 7:
routine = MetadataCache::getPerm<Cached::Package>(tdbb, work->dfw_id, CacheFlag::ERASED | CacheFlag::NOSCAN);
fb_assert(routine);
routine = MetadataCache::getPerm<Cached::Package>(tdbb, work->dfw_id, CacheFlag::NOSCAN);
if (routine)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see MetadataCache::newVersionCached::Package() in CreatePackageBodyNode::execute(). It must have (as a pair) call to commit or rollback cache. Why did you decide to remove it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a moment, I thought the commit and rollback commands were only necessary for the erase and create operations. But as I see it now, the real problem is the invalid flag.

routine->commit(tdbb);
}
Expand Down
Loading