Skip to content

Commit

Permalink
[Cpp]: Fix WriteBlob typo (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Dec 13, 2023
1 parent c7107a0 commit ed6b9bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/include/milvus-storage/storage/space.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Space {
static Result<std::unique_ptr<Space>> Open(const std::string& uri, Options options);

// Write a blob to space. Will return a error if replace is false and a blob with the same name exists.
Status WriteBolb(std::string name, void* blob, int64_t length, bool replace = false);
Status WriteBlob(std::string name, void* blob, int64_t length, bool replace = false);

// Read a blob from space, the target must have enough size to hold this blob.
Status ReadBlob(std::string name, void* target);
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/storage/space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ std::unique_ptr<arrow::RecordBatchReader> Space::Read(std::shared_ptr<ReadOption
return RecordReader::MakeRecordReader(manifest_, manifest_->schema(), fs_, delete_fragments_, option);
}

Status Space::WriteBolb(std::string name, void* blob, int64_t length, bool replace) {
Status Space::WriteBlob(std::string name, void* blob, int64_t length, bool replace) {
if (!replace && manifest_->has_blob(name)) {
return Status::InvalidArgument("blob already exist");
}
Expand Down

0 comments on commit ed6b9bd

Please sign in to comment.