[CP] [CP] to issue<53759597>:fix assoc array memory shrink cause 4016 issue
This commit is contained in:
@ -3570,10 +3570,20 @@ int ObPLCollection::deep_copy(ObPLCollection *src, ObIAllocator *allocator, bool
|
|||||||
} else if (ignore_del_element && !is_associative_array()) {
|
} else if (ignore_del_element && !is_associative_array()) {
|
||||||
set_first(1);
|
set_first(1);
|
||||||
set_last(k);
|
set_last(k);
|
||||||
|
#ifdef OB_BUILD_ORACLE_PL
|
||||||
|
} else if (PL_ASSOCIATIVE_ARRAY_TYPE == src->get_type()) {
|
||||||
|
set_first(static_cast<ObPLAssocArray *>(src)->get_first());
|
||||||
|
set_last(static_cast<ObPLAssocArray *>(src)->get_last());
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
set_first(src->get_first());
|
set_first(src->get_first());
|
||||||
set_last(src->get_last());
|
set_last(src->get_last());
|
||||||
}
|
}
|
||||||
|
#ifdef OB_BUILD_ORACLE_PL
|
||||||
|
} else if (PL_ASSOCIATIVE_ARRAY_TYPE == src->get_type()) {
|
||||||
|
set_first(static_cast<ObPLAssocArray *>(src)->get_first());
|
||||||
|
set_last(static_cast<ObPLAssocArray *>(src)->get_last());
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
set_first(src->get_first());
|
set_first(src->get_first());
|
||||||
set_last(src->get_last());
|
set_last(src->get_last());
|
||||||
|
|||||||
Reference in New Issue
Block a user