Skip to content

Commit a4c886a

Browse files
committed
Backported CORE-6015: Segfault when using expression index with complex expression
1 parent 5151ead commit a4c886a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/jrd/idx.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,9 @@ void IDX_garbage_collect(thread_db* tdbb, record_param* rpb, RecordStack& going,
730730
insertion.iib_key = &key1;
731731
insertion.iib_btr_level = 0;
732732

733+
Attachment* att = tdbb->getAttachment();
734+
AutoSetRestoreFlag<ULONG> gc(&att->att_flags, ATT_no_cleanup, true);
735+
733736
WIN window(get_root_page(tdbb, rpb->rpb_relation));
734737

735738
index_root_page* root = (index_root_page*) CCH_FETCH(tdbb, &window, LCK_read, pag_root);

0 commit comments

Comments
 (0)