mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
fixes #248 Convert to a tree on omt clone if it must support marks
This commit is contained in:
parent
412f1d9f36
commit
462f601236
1 changed files with 3 additions and 0 deletions
|
@ -207,6 +207,9 @@ void omt<omtdata_t, omtdataout_t, supports_marks>::clone(const omt &src) {
|
|||
src.fill_array_with_subtree_values(&this->d.a.values[0], src.d.t.root);
|
||||
}
|
||||
this->d.a.num_values = src.size();
|
||||
if (supports_marks) {
|
||||
this->convert_to_tree();
|
||||
}
|
||||
}
|
||||
|
||||
template<typename omtdata_t, typename omtdataout_t, bool supports_marks>
|
||||
|
|
Loading…
Add table
Reference in a new issue