From 58918d4ccc39d26f5085651e8f6dab9df8548bd2 Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Mon, 16 Mar 2020 16:54:29 -0700 Subject: [PATCH] Use correct Env for DestroyDB in stress test (#6539) Summary: When using custom Env, trying to call DestroyDB() with default Options will fail. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6539 Test Plan: ./db_stress Differential Revision: D20476204 Pulled By: riversand963 fbshipit-source-id: 612c6754660cc9b5bb3e9c2dbb2f6ecd7f648797 --- db_stress_tool/db_stress_test_base.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db_stress_tool/db_stress_test_base.cc b/db_stress_tool/db_stress_test_base.cc index a2e704ed7..8e736eb3b 100644 --- a/db_stress_tool/db_stress_test_base.cc +++ b/db_stress_tool/db_stress_test_base.cc @@ -41,6 +41,7 @@ StressTest::StressTest() } Options options; + options.env = db_stress_env; // Remove files without preserving manfiest files #ifndef ROCKSDB_LITE const Status s = !FLAGS_use_blob_db