[GIS]fix gis extern sorter fd leak

This commit is contained in:
obdev
2023-03-22 07:11:52 +00:00
committed by ob-robot
parent 588cfee577
commit 96a63c44a5
2 changed files with 7 additions and 1 deletions

View File

@ -57,6 +57,12 @@ int ObSpatialIndexLookupOp::init(const ObDASScanCtDef *lookup_ctdef,
return ret; return ret;
} }
ObSpatialIndexLookupOp::~ObSpatialIndexLookupOp()
{
sorter_.clean_up();
sorter_.~ObExternalSort();
}
int ObSpatialIndexLookupOp::reset_lookup_state(bool need_switch_param) int ObSpatialIndexLookupOp::reset_lookup_state(bool need_switch_param)
{ {
is_inited_ = false; is_inited_ = false;

View File

@ -38,7 +38,7 @@ public:
is_sorted_(false), is_sorted_(false),
is_whole_range_(false), is_whole_range_(false),
is_inited_(false) {} is_inited_(false) {}
virtual ~ObSpatialIndexLookupOp() {} virtual ~ObSpatialIndexLookupOp();
int init(const ObDASScanCtDef *lookup_ctdef, int init(const ObDASScanCtDef *lookup_ctdef,
ObDASScanRtDef *lookup_rtdef, ObDASScanRtDef *lookup_rtdef,