mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
dbms: One more dirty hack to ensure the same size of CompressedWriteBuffer [METR-19308]
This commit is contained in:
parent
80fd8aa29b
commit
54b7ce5dad
@ -41,6 +41,8 @@ private:
|
||||
PODArray<char> compressed_buffer;
|
||||
#ifdef USE_QUICKLZ
|
||||
qlz_state_compress * qlz_state;
|
||||
#else
|
||||
void * dirty_hack_to_ensure_the_same_size_of_the_structure = nullptr;
|
||||
#endif
|
||||
|
||||
void nextImpl()
|
||||
@ -186,7 +188,8 @@ public:
|
||||
}
|
||||
|
||||
#ifdef USE_QUICKLZ
|
||||
delete qlz_state;
|
||||
if (qlz_state) /// It can be zero if it is actually dirty_hack_to_ensure_the_same_size_of_the_structure //_-)
|
||||
delete qlz_state;
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user