From 2cdb8adbe0c902ffa1a0e6b0cd2d2cb9d178d3ff Mon Sep 17 00:00:00 2001 From: "George O. Lorch III" Date: Tue, 13 Nov 2018 14:29:52 -0700 Subject: [PATCH] PS-4532 : Replace obsolete HAVE_purify with HAVE_VALGRIND in ha_rocksdb.cc - Replaced HAVE_purify with HAVE_VALGRIND as suggested. --- storage/rocksdb/ha_rocksdb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/rocksdb/ha_rocksdb.cc b/storage/rocksdb/ha_rocksdb.cc index 905bc7bfda25..34ae7f51ad5c 100644 --- a/storage/rocksdb/ha_rocksdb.cc +++ b/storage/rocksdb/ha_rocksdb.cc @@ -4387,11 +4387,11 @@ static int rocksdb_done_func(void *const p) { // Disown the cache data since we're shutting down. // This results in memory leaks but it improved the shutdown time. // Don't disown when running under valgrind -#ifndef HAVE_purify +#ifndef HAVE_VALGRIND if (rocksdb_tbl_options->block_cache) { rocksdb_tbl_options->block_cache->DisownData(); } -#endif /* HAVE_purify */ +#endif // HAVE_VALGRIND rocksdb_db_options = nullptr; rocksdb_tbl_options = nullptr;