diff --git a/cpp/include/milvus-storage/storage/space.h b/cpp/include/milvus-storage/storage/space.h index b81cd13..ec776ee 100644 --- a/cpp/include/milvus-storage/storage/space.h +++ b/cpp/include/milvus-storage/storage/space.h @@ -48,7 +48,7 @@ class Space { static Result> 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); diff --git a/cpp/src/storage/space.cpp b/cpp/src/storage/space.cpp index a5a087a..ff558f7 100644 --- a/cpp/src/storage/space.cpp +++ b/cpp/src/storage/space.cpp @@ -190,7 +190,7 @@ std::unique_ptr Space::Read(std::shared_ptrschema(), 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"); }