diff --git a/db/db_impl.cc b/db/db_impl.cc index fa1c87aee..b50ea9561 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -3530,7 +3530,8 @@ Status DBImpl::CheckConsistency() { std::string corruption_messages; for (const auto& md : metadata) { - std::string file_path = md.db_path + "/" + md.name; + // md.name has a leading "/". + std::string file_path = md.db_path + md.name; uint64_t fsize = 0; Status s = env_->GetFileSize(file_path, &fsize);