mirror of https://github.com/milvus-io/milvus.git
#504 The code coverage rate of core/src/scheduler/optimizer is too low
parent
47abe4ff47
commit
46da58e222
|
@ -257,6 +257,11 @@ ExecutionEngineImpl::PhysicalSize() const {
|
|||
Status
|
||||
ExecutionEngineImpl::Serialize() {
|
||||
auto status = write_index(index_, location_);
|
||||
|
||||
// here we reset index size by file size,
|
||||
// since some index type(such as SQ8) data size become smaller after serialized
|
||||
index_->set_size(PhysicalSize());
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue