#504 The code coverage rate of core/src/scheduler/optimizer is too low

pull/572/head
Yukikaze-CZR 2019-11-27 14:29:05 +08:00
parent 47abe4ff47
commit 46da58e222
5 changed files with 5 additions and 0 deletions

View File

@ -257,6 +257,11 @@ ExecutionEngineImpl::PhysicalSize() const {
Status Status
ExecutionEngineImpl::Serialize() { ExecutionEngineImpl::Serialize() {
auto status = write_index(index_, location_); 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; return status;
} }