diff --git a/env/env_posix.cc b/env/env_posix.cc index 78d5e251b..f7efbae80 100644 --- a/env/env_posix.cc +++ b/env/env_posix.cc @@ -463,11 +463,12 @@ void PosixEnv::WaitForJoin() { std::string Env::GenerateUniqueId() { std::string uuid_file = "/proc/sys/kernel/random/uuid"; + std::shared_ptr fs = FileSystem::Default(); - Status s = FileExists(uuid_file); + Status s = fs->FileExists(uuid_file, IOOptions(), nullptr); if (s.ok()) { std::string uuid; - s = ReadFileToString(this, uuid_file, &uuid); + s = ReadFileToString(fs.get(), uuid_file, &uuid); if (s.ok()) { return uuid; }