提交 c700848f 编写于 作者: P peng.xu

Merge branch 'branch-0.5.0' into '0.5.0'

fix jenkins build error

See merge request megasearch/milvus!771

Former-commit-id: aec7147594eb7092ada45f9d83292a91d0a0bd7c
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "server/utils.h" #include "server/utils.h"
#include <fstream>
#include <iostream> #include <iostream>
#include <thread> #include <thread>
#include <string> #include <string>
...@@ -67,12 +68,11 @@ static const char* INVALID_CONFIG_STR = "*INVALID*"; ...@@ -67,12 +68,11 @@ static const char* INVALID_CONFIG_STR = "*INVALID*";
void void
WriteToFile(const char* file_path, const char* content) { WriteToFile(const char* file_path, const char* content) {
boost::filesystem::path fpath(file_path); std::fstream fs(file_path, std::ios_base::out);
boost::filesystem::fstream fstream(fpath, std::ios_base::out);
//write data to file //write data to file
fstream << content; fs << content;
fstream.close(); fs.close();
} }
} // namespace } // namespace
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册