MS-404 Release index after search task done avoid memory increment continues

Former-commit-id: c73ee0674a6481aeabd4b055f7e62223cae9e205
pull/191/head
wxyu 2019-08-23 11:30:48 +08:00
parent bfa7f7c95f
commit 49276fbf8c
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,7 @@ Please mark all change in change log and use the ticket from JIRA.
- MS-394 - Update scheduler unittest
- MS-400 - Add timestamp record in task state change function
- MS-402 - Add dump implementation for TaskTableItem
- MS-404 - Release index after search task done avoid memory increment continues
## New Feature
- MS-343 - Implement ResourceMgr

View File

@ -207,6 +207,9 @@ XSearchTask::Execute() {
CollectDurationMetrics(index_type_, total_time);
rc.ElapseFromBegin("totally cost");
// release index in resource
index_engine_ = nullptr;
}
TaskPtr