diff --git a/db_stress_tool/db_stress_env_wrapper.h b/db_stress_tool/db_stress_env_wrapper.h index 35416641d..83e1f7391 100644 --- a/db_stress_tool/db_stress_env_wrapper.h +++ b/db_stress_tool/db_stress_env_wrapper.h @@ -20,8 +20,10 @@ class DbStressEnvWrapper : public EnvWrapper { // We determine whether it is a manifest file by searching a strong, // so that there will be false positive if the directory path contains the // keyword but it is unlikely. + // Checkpoint directory needs to be exempted. if (!if_preserve_all_manifests || - f.find("MANIFEST-") == std::string::npos) { + f.find("MANIFEST-") == std::string::npos || + f.find("checkpoint") != std::string::npos) { return target()->DeleteFile(f); } return Status::OK();