Skip to content

Commit

Permalink
fix(tianmu): fix mysqld crash when exec query with AggregateRough, as…
Browse files Browse the repository at this point in the history
…sert failed on i < m_idx.size() at tianmu_attr.h:387, msg: [bad dpn index 0/0] (stoneatom#1580)
  • Loading branch information
adofsauron authored and mergify[bot] committed Apr 19, 2023
1 parent 99c5e80 commit 4b7c64b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions storage/tianmu/vc/tianmu_attr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ void TianmuAttr::LoadPackInfo([[maybe_unused]] Transaction *trans_) {

PackOntologicalStatus TianmuAttr::GetPackOntologicalStatus(int pack_no) {
LoadPackInfo();
if (m_idx.empty() || (!m_idx.size())) {
return PackOntologicalStatus::NULLS_ONLY;
}
DPN const *dpn(pack_no >= 0 ? &get_dpn(pack_no) : nullptr);
if (pack_no < 0 || dpn->NullOnly())
return PackOntologicalStatus::NULLS_ONLY;
Expand Down

0 comments on commit 4b7c64b

Please sign in to comment.