diff --git a/db_stress_tool/db_stress_listener.cc b/db_stress_tool/db_stress_listener.cc index 9968f5465..290d49008 100644 --- a/db_stress_tool/db_stress_listener.cc +++ b/db_stress_tool/db_stress_listener.cc @@ -31,6 +31,13 @@ UniqueIdVerifier::UniqueIdVerifier(const std::string& db_name) FileSystem& fs = *FileSystem::Default(); IOOptions opts; + Status st = fs.CreateDirIfMissing(db_name, opts, nullptr); + if (!st.ok()) { + fprintf(stderr, "Failed to create directory %s: %s\n", + db_name.c_str(), st.ToString().c_str()); + exit(1); + } + { std::unique_ptr reader; Status s =