ircd::db: Deprecate compressed block cache. (RocksDB 8.0)

This commit is contained in:
Jason Volk 2023-03-17 21:22:46 -07:00
parent 5994475542
commit 1e4f44f41d
3 changed files with 6 additions and 6 deletions

View File

@ -38,9 +38,9 @@ namespace ircd::db
template<> prop_map property(const column &, const string_view &name);
// Access to the column's caches (see cache.h interface)
const rocksdb::Cache *cache_compressed(const column &);
[[gnu::deprecated]] const rocksdb::Cache *cache_compressed(const column &);
const rocksdb::Cache *cache(const column &);
rocksdb::Cache *cache_compressed(column &);
[[gnu::deprecated]] rocksdb::Cache *cache_compressed(column &);
rocksdb::Cache *cache(column &);
// [GET] Tests if key exists

View File

@ -3204,7 +3204,7 @@ rocksdb::Cache *
ircd::db::cache_compressed(column &column)
{
database::column &c(column);
return c.table_opts.block_cache_compressed.get();
return nullptr; // c.table_opts.block_cache_compressed.get();
}
[[gnu::hot]]
@ -3219,7 +3219,7 @@ const rocksdb::Cache *
ircd::db::cache_compressed(const column &column)
{
const database::column &c(column);
return c.table_opts.block_cache_compressed.get();
return nullptr; // c.table_opts.block_cache_compressed.get();
}
template<>

View File

@ -1985,7 +1985,7 @@ ircd::db::database::column::column(database &d,
// Setup the cache for compressed assets.
const auto &cache_size_comp(this->descriptor->cache_size_comp);
if(cache_size_comp != 0)
table_opts.block_cache_compressed = std::make_shared<database::cache>(this->d, this->stats, this->allocator, this->name, cache_size_comp);
; //table_opts.block_cache_compressed = std::make_shared<database::cache>(this->d, this->stats, this->allocator, this->name, cache_size_comp);
// Setup the bloom filter.
const auto &bloom_bits(this->descriptor->bloom_bits);
@ -2059,7 +2059,7 @@ ircd::db::database::column::column(database &d,
this->cmp.Name(),
this->options.prefix_extractor? this->prefix.Name() : "none",
table_opts.block_cache? "YES": "NO",
table_opts.block_cache_compressed? "YES": "NO",
"NO", //table_opts.block_cache_compressed? "YES": "NO",
this->descriptor->bloom_bits,
int(this->options.compression),
this->descriptor->name