mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
columnar-appender-common: fix PoolWithFailOver [#METR-20682].
This commit is contained in:
parent
d376a81692
commit
5d5bb88118
@ -6,6 +6,7 @@
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
#include <common/logger_useful.h>
|
||||
#include <DB/Common/Exception.h>
|
||||
|
||||
/// This type specifies the possible behaviors of an object pool allocator.
|
||||
enum class PoolMode
|
||||
@ -93,6 +94,8 @@ public:
|
||||
|
||||
PoolBase * getPool() const
|
||||
{
|
||||
if (!data)
|
||||
throw DB::Exception("attempt to get pool from uninitialized entry");
|
||||
return &data->data.pool;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user