Makes MockFileSystem::GetAbsolutePath work on Windows

oxigraph-8.3.2
Tpt 2 years ago committed by Niko PLP
parent 3f7c92b975
commit 77ccfe4284
  1. 4
      env/mock_env.cc

4
env/mock_env.cc vendored

@ -601,11 +601,15 @@ IOStatus MockFileSystem::GetAbsolutePath(const std::string& db_path,
std::string* output_path,
IODebugContext* /*dbg*/) {
*output_path = NormalizeMockPath(db_path);
#ifdef OS_WIN
return IOStatus::OK(); // TODO
#else
if (output_path->at(0) != '/') {
return IOStatus::NotSupported("GetAbsolutePath");
} else {
return IOStatus::OK();
}
#endif
}
std::string MockFileSystem::NormalizeMockPath(const std::string& path) {

Loading…
Cancel
Save