dbms: One more dirty hack to ensure the same size of CompressedWriteBuffer [METR-19308]

This commit is contained in:
Vladimir Chebotarev 2016-02-22 00:57:46 +03:00
parent 80fd8aa29b
commit 54b7ce5dad

View File

@ -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
}
};