mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Merge branch 'branch-0.5.0' into '0.5.0'
fix jenkins build error See merge request megasearch/milvus!771 Former-commit-id: a252f2292e0e3b2397ae352443c62b00a31f697f
This commit is contained in:
commit
e5fd7bd966
@ -17,6 +17,7 @@
|
||||
|
||||
#include "server/utils.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#include <string>
|
||||
@ -67,12 +68,11 @@ static const char* INVALID_CONFIG_STR = "*INVALID*";
|
||||
|
||||
void
|
||||
WriteToFile(const char* file_path, const char* content) {
|
||||
boost::filesystem::path fpath(file_path);
|
||||
boost::filesystem::fstream fstream(fpath, std::ios_base::out);
|
||||
std::fstream fs(file_path, std::ios_base::out);
|
||||
|
||||
//write data to file
|
||||
fstream << content;
|
||||
fstream.close();
|
||||
fs << content;
|
||||
fs.close();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user