columnar-appender-common: fix PoolWithFailOver [#METR-20682].

This commit is contained in:
Alexander Prudaev 2016-09-13 17:46:57 +03:00
parent d376a81692
commit 5d5bb88118

View File

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