From fa33addbf78410578f73e63381920393ecb6b604 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Mon, 15 Apr 2019 20:46:19 +0800 Subject: [PATCH] faker(db): mock some testing data Former-commit-id: 17e28faece56f38b37c7d5ae00758b7ea5392464 --- cpp/src/db/db_meta_impl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cpp/src/db/db_meta_impl.cpp b/cpp/src/db/db_meta_impl.cpp index 23ca5dd6..7ab9f650 100644 --- a/cpp/src/db/db_meta_impl.cpp +++ b/cpp/src/db/db_meta_impl.cpp @@ -1,4 +1,7 @@ +#include +#include #include "db_meta_impl.h" +#include "id_generators.h" namespace zilliz { namespace vecwise { @@ -23,6 +26,12 @@ Status DBMetaImpl::add_group(const GroupOptions& options_, Status DBMetaImpl::get_group(const std::string& group_id_, GroupSchema& group_info_) { //PXU TODO + std::stringstream ss; + SimpleIDGenerator g; + ss.str(""); + ss << "/tmp/test/" << g.getNextIDNumber() << ".log"; + group_info_.dimension = 64; + group_info_.next_file_location = ss.str(); return Status::OK(); } -- GitLab