Skip to content

Commit 7b617a9

Browse files
committed
Fixed assertion reported privately by Aleksey Mochalov
1 parent df27e62 commit 7b617a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/jrd/tra.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4125,9 +4125,7 @@ void jrd_tra::checkBlob(thread_db* tdbb, const bid* blob_id, jrd_fld* fld, bool
41254125
if (!tra_blobs->locate(blob_id->bid_temp_id()) &&
41264126
!tra_fetched_blobs.locate(*blob_id))
41274127
{
4128-
MetadataCache* mdc = MetadataCache::get(tdbb);
4129-
auto* blobRelation = mdc->lookupRelationNoChecks(rel_id); // optimization with NoChecks
4130-
// correct rel definitely present
4128+
auto* blobRelation = MetadataCache::getPerm<Cached::Relation>(tdbb, rel_id, CacheFlag::AUTOCREATE);
41314129
if (blobRelation)
41324130
{
41334131
auto security_name = (fld && fld->fld_security_name.hasData()) ?

0 commit comments

Comments
 (0)