#3998 fix a dead lock issue (#4011)

Signed-off-by: groot <yihua.mo@zilliz.com>
pull/3954/head
groot 2020-10-16 19:29:48 +08:00 committed by GitHub
parent e2f63c9bd1
commit 23b94306fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -45,7 +45,6 @@
#include "scheduler/Definition.h"
#include "scheduler/SchedInst.h"
#include "scheduler/job/BuildIndexJob.h"
#include "scheduler/job/DeleteJob.h"
#include "scheduler/job/SearchJob.h"
#include "segment/SegmentReader.h"
#include "segment/SegmentWriter.h"
@ -656,12 +655,6 @@ DBImpl::DropPartition(const std::string& partition_name) {
return status;
}
// scheduler will determine when to delete collection files
auto nres = scheduler::ResMgrInst::GetInstance()->GetNumOfComputeResource();
scheduler::DeleteJobPtr job = std::make_shared<scheduler::DeleteJob>(partition_name, meta_ptr_, nres);
scheduler::JobMgrInst::GetInstance()->Put(job);
job->WaitAndDelete();
return Status::OK();
}