Skip to content

Commit 85caf1b

Browse files
committed
Fixed relation lock when creating expression index
1 parent 273acd5 commit 85caf1b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/dsql/DdlNodes.epp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12740,8 +12740,7 @@ MetaId StoreIndexNode::createExpression(thread_db* tdbb, Cached::Relation* rel,
1274012740
// Actually create the index
1274112741

1274212742
// Protect relation from modification to create consistent index
12743-
ProtectRelations protectRelation(tdbb, transaction);
12744-
protectRelation.addRelation(rel);
12743+
ProtectRelations protectRelation(tdbb, transaction, rel);
1274512744

1274612745
SelectivityList selectivity(*tdbb->getDefaultPool());
1274712746

0 commit comments

Comments
 (0)