From 5c3319d5d28193a89f3348d6d1ab626b72847270 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Wed, 17 Apr 2019 10:46:12 +0800 Subject: [PATCH] refactor(db): using wrapper write_index Former-commit-id: a7ce7f72f6c50385c32d14aa01530db8fbfcdc3b --- cpp/src/db/MemManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/src/db/MemManager.cpp b/cpp/src/db/MemManager.cpp index 3f74301f..37a2895e 100644 --- a/cpp/src/db/MemManager.cpp +++ b/cpp/src/db/MemManager.cpp @@ -1,11 +1,10 @@ -/* #include */ -/* #include */ #include -#include #include #include #include +#include + #include "MemManager.h" #include "Meta.h" @@ -45,7 +44,8 @@ Status MemVectors::serialize(std::string& group_id) { /* faiss::write_index(pIndex_, ss.str().c_str()); */ /* std::cout << pIndex_->ntotal << std::endl; */ /* std::cout << _file_location << std::endl; */ - faiss::write_index(pIndex_, _file_location.c_str()); + /* faiss::write_index(pIndex_, _file_location.c_str()); */ + write_index(pIndex_, _file_location.c_str()); group_id = group_id_; return Status::OK(); } -- GitLab