Skip to content

Commit 6c8b465

Browse files
committed
Avoid accessing RDB$FORMATS in system transaction - in current code it almost exactly reflects state of RDB$RELATIONS
1 parent ddeca9b commit 6c8b465

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/jrd/met.epp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,9 +1026,10 @@ const Format* RelationPermanent::getFormat(thread_db* tdbb, USHORT number)
10261026
fb_assert(!(rel_flags & REL_temp_ltt));
10271027

10281028
Format* format = NULL;
1029+
auto* metaTransaction = attachment->getMetaTransaction(tdbb);
10291030
AutoCacheRequest request(tdbb, irq_r_format, IRQ_REQUESTS);
10301031

1031-
FOR(REQUEST_HANDLE request)
1032+
FOR(REQUEST_HANDLE request TRANSACTION_HANDLE metaTransaction)
10321033
X IN RDB$FORMATS WITH X.RDB$RELATION_ID EQ getId() AND
10331034
X.RDB$FORMAT EQ number
10341035
{

0 commit comments

Comments
 (0)