Skip to content

Commit

Permalink
Fix program crash caused by incorrect use of noexcept modifier
Browse files Browse the repository at this point in the history
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
  • Loading branch information
xiaocai2333 committed Jun 28, 2023
1 parent 936ebf3 commit 5e85c8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/core/src/storage/MemFileManagerImpl.cpp
Expand Up @@ -42,7 +42,7 @@ MemFileManagerImpl::AddFile(const std::string& filename /* unused */) noexcept {
}

bool
MemFileManagerImpl::AddFile(const BinarySet& binary_set) noexcept {
MemFileManagerImpl::AddFile(const BinarySet& binary_set) {

Check warning on line 45 in internal/core/src/storage/MemFileManagerImpl.cpp

View check run for this annotation

Codecov / codecov/patch

internal/core/src/storage/MemFileManagerImpl.cpp#L45

Added line #L45 was not covered by tests
std::vector<const uint8_t*> data_slices;
std::vector<int64_t> slice_sizes;
std::vector<std::string> slice_names;
Expand Down
2 changes: 1 addition & 1 deletion internal/core/src/storage/MemFileManagerImpl.h
Expand Up @@ -62,7 +62,7 @@ class MemFileManagerImpl : public FileManagerImpl {
CacheRawDataToMemory(std::vector<std::string> remote_files);

bool
AddFile(const BinarySet& binary_set) noexcept;
AddFile(const BinarySet& binary_set);

std::map<std::string, int64_t>
GetRemotePathsToFileSize() const {
Expand Down

0 comments on commit 5e85c8e

Please sign in to comment.