Merge branch 'branch-0.5.0' into 'branch-0.5.0'

MS-641 Segment fault(signal 11) in PickToLoad

See merge request megasearch/milvus!697

Former-commit-id: 34e1f77cd94cf66d03462c96f068caf7e629d409
pull/191/head
jinhai 2019-10-12 17:10:49 +08:00
commit 54bc7b587f
1 changed files with 5 additions and 0 deletions

View File

@ -149,6 +149,11 @@ class TaskTable {
}
public:
TaskTableItemPtr& operator[](uint64_t index) {
std::lock_guard<std::mutex> lock(mutex_);
return table_[index];
}
std::deque<TaskTableItemPtr>::iterator
begin() {
return table_.begin();