Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,10 @@ std::string KVTensorWrapper::layout_str() {
oss << options_.layout();
return oss.str();
}

std::vector<std::string> KVTensorWrapper::get_kvtensor_serializable_metadata()
const {
FBEXCEPTION("Not implemented");
return std::vector<std::string>{};
}
} // namespace ssd
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ std::string KVTensorWrapper::serialize() const {
std::vector<std::string> KVTensorWrapper::get_kvtensor_serializable_metadata()
const {
std::vector<std::string> metadata;
// Return empty metadata if checkpoint_handle_ is not initialized yet
if (checkpoint_handle_ == nullptr) {
return metadata;
}
auto* db = dynamic_cast<EmbeddingRocksDB*>(db_.get());
auto checkpoint_paths = db->get_checkpoints(checkpoint_handle_->uuid);
metadata.push_back(std::to_string(checkpoint_paths.size()));
Expand Down
Loading