From 817d032a0278910c8952546b2c103cf440868d91 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: d72e2bb4ee8122da76a23661df802adc3447d3f7 --- 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 3f74301f47..37a2895e61 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(); }