Renamed path_open() -> path_streamopen()

This commit is contained in:
Jean-Francois Dockes
2020-09-29 13:35:55 +02:00
parent 4b928ee57e
commit 19eac2d7dc
11 changed files with 40 additions and 52 deletions
+2 -2
View File
@@ -284,8 +284,8 @@ void Db::Native::openWrite(const string& dir, Db::OpenMode mode)
// Force Chert format, don't store the text.
string stub = path_cat(m_rcldb->m_config->getConfDir(),
"xapian.stub");
std::fstream fp = path_open(stub, std::ios::out|std::ios::trunc);
if (!fp.is_open()) {
std::fstream fp;
if (!path_streamopen(stub, std::ios::out|std::ios::trunc, fp)) {
throw(string("Can't create ") + stub);
}
fp << "chert " << dir << "\n";