mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Test for supported compression
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#include "IfcLogger.h"
|
#include "IfcLogger.h"
|
||||||
|
|
||||||
#include <rocksdb/table.h>
|
#include <rocksdb/table.h>
|
||||||
|
#include <rocksdb/convenience.h>
|
||||||
|
|
||||||
IfcParse::parse_context::~parse_context() {
|
IfcParse::parse_context::~parse_context() {
|
||||||
for (auto& t : tokens_) {
|
for (auto& t : tokens_) {
|
||||||
@@ -407,7 +408,8 @@ namespace {
|
|||||||
// options.disable_auto_compactions = true;
|
// options.disable_auto_compactions = true;
|
||||||
options.create_if_missing = true;
|
options.create_if_missing = true;
|
||||||
options.merge_operator.reset(new ConcatenateIdMergeOperator());
|
options.merge_operator.reset(new ConcatenateIdMergeOperator());
|
||||||
options.compression = rocksdb::kZSTD;
|
auto vec = rocksdb::GetSupportedCompressions();
|
||||||
|
options.compression = std::find(vec.begin(), vec.end(), rocksdb::kZSTD) != vec.end() ? rocksdb::kZSTD : rocksdb::kNoCompression;
|
||||||
|
|
||||||
rocksdb::BlockBasedTableOptions tbo;
|
rocksdb::BlockBasedTableOptions tbo;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user