mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
Make sure relPages->rel_data_pages gets actual value before using
This commit is contained in:
parent
4469b6da6d
commit
1d9f93aedc
@ -1111,6 +1111,9 @@ void Optimizer::compileRelation(StreamType stream)
|
||||
const auto relation = tail->csb_relation;
|
||||
fb_assert(relation);
|
||||
|
||||
const auto format = CMP_format(tdbb, csb, stream);
|
||||
tail->csb_cardinality = getCardinality(tdbb, relation, format);
|
||||
|
||||
tail->csb_idx = nullptr;
|
||||
|
||||
if (needIndices && !relation->rel_file && !relation->isVirtual())
|
||||
@ -1152,9 +1155,6 @@ void Optimizer::compileRelation(StreamType stream)
|
||||
if (tail->csb_plan)
|
||||
markIndices(tail, relation->rel_id);
|
||||
}
|
||||
|
||||
const auto format = CMP_format(tdbb, csb, stream);
|
||||
tail->csb_cardinality = getCardinality(tdbb, relation, format);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user