Signed-off-by: Zhiru Zhu <zzhu@fandm.edu>
pull/1591/head
Zhiru Zhu 2020-03-09 20:40:40 +08:00
parent b20e16aba1
commit 593077e85b
No known key found for this signature in database
GPG Key ID: AB8AD6F124821076
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ Please mark all change in change log and use the issue from GitHub
- \#1571 Meta engine type become IDMAP after dropping index for BINARY table - \#1571 Meta engine type become IDMAP after dropping index for BINARY table
- \#1574 Set all existing bitset in cache when applying deletes - \#1574 Set all existing bitset in cache when applying deletes
- \#1577 Row count incorrect if delete vectors then create index - \#1577 Row count incorrect if delete vectors then create index
- \#1590 Server down caused by failed to write file during concurrent mixed operations
## Feature ## Feature
- \#216 Add CLI to get server info - \#216 Add CLI to get server info

View File

@ -130,7 +130,7 @@ DefaultDeletedDocsFormat::write(const store::DirectoryPtr& directory_ptr, const
ENGINE_LOG_ERROR << err_msg; ENGINE_LOG_ERROR << err_msg;
throw Exception(SERVER_WRITE_ERROR, err_msg); throw Exception(SERVER_WRITE_ERROR, err_msg);
} }
if (::write(del_fd, deleted_docs_list.data(), new_num_bytes) == -1) { if (::write(del_fd, deleted_docs_list.data(), sizeof(segment::offset_t) * deleted_docs->GetSize()) == -1) {
std::string err_msg = "Failed to write to file" + temp_path + ", error: " + std::strerror(errno); std::string err_msg = "Failed to write to file" + temp_path + ", error: " + std::strerror(errno);
ENGINE_LOG_ERROR << err_msg; ENGINE_LOG_ERROR << err_msg;
throw Exception(SERVER_WRITE_ERROR, err_msg); throw Exception(SERVER_WRITE_ERROR, err_msg);