Suppress file deletion error message in FaultInjectionTestFS (#6694)

Summary:
The error message is causing problems in the crash tests due to the
error parsing logic in db_crashtest.py.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6694

Reviewed By: siying

Differential Revision: D20998531

Pulled By: anand1976

fbshipit-source-id: 89cb54a5f5bb664ae6d239c37559f10e14c5ea07
main
anand76 5 years ago committed by Facebook GitHub Bot
parent 9eca6d651d
commit d9cad3a526
  1. 4
      test_util/fault_injection_test_fs.cc

@ -335,10 +335,6 @@ IOStatus FaultInjectionTestFS::DeleteFile(const std::string& f,
return GetError(); return GetError();
} }
IOStatus io_s = FileSystemWrapper::DeleteFile(f, options, dbg); IOStatus io_s = FileSystemWrapper::DeleteFile(f, options, dbg);
if (!io_s.ok()) {
fprintf(stderr, "Cannot delete file %s: %s\n", f.c_str(),
io_s.ToString().c_str());
}
if (io_s.ok()) { if (io_s.ok()) {
UntrackFile(f); UntrackFile(f);
} }

Loading…
Cancel
Save