Skip to content

Commit

Permalink
[Cpp] Add GetCurrentVersion
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Nov 6, 2023
1 parent 6b1f327 commit 4b96b45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/include/milvus-storage/storage/space.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class Space {

std::shared_ptr<Schema> schema();

int64_t GetCurrentVersion();

private:
Status Init();

Expand Down
2 changes: 2 additions & 0 deletions cpp/src/storage/space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,6 @@ Result<std::shared_ptr<arrow::RecordBatchReader>> Space::ScanData() {

std::shared_ptr<Schema> Space::schema() { return manifest_->schema(); }

int64_t Space::GetCurrentVersion() { return manifest_->version(); }

} // namespace milvus_storage

0 comments on commit 4b96b45

Please sign in to comment.