diff --git a/env/fs_remap.cc b/env/fs_remap.cc index b75121f44..fd9241181 100644 --- a/env/fs_remap.cc +++ b/env/fs_remap.cc @@ -268,6 +268,10 @@ IOStatus RemapFileSystem::RenameFile(const std::string& src, IODebugContext* dbg) { auto status_and_src_enc_path = EncodePath(src); if (!status_and_src_enc_path.first.ok()) { + if (status_and_src_enc_path.first.IsNotFound()) { + const IOStatus& s = status_and_src_enc_path.first; + status_and_src_enc_path.first = IOStatus::PathNotFound(s.ToString()); + } return status_and_src_enc_path.first; } auto status_and_dest_enc_path = EncodePathWithNewBasename(dest);