From ed6b9bd5c9d2a0f1085a5d047ec2c1f6f91c0486 Mon Sep 17 00:00:00 2001 From: Bingyi Sun Date: Wed, 13 Dec 2023 16:04:29 +0800 Subject: [PATCH] [Cpp]: Fix WriteBlob typo (#97) Signed-off-by: sunby --- cpp/include/milvus-storage/storage/space.h | 2 +- cpp/src/storage/space.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); }