You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-498. Add the knob to disable segment|dict file preallocation. Dict files extension uses fallocate() if possible.
This commit is contained in:
@ -80,6 +80,11 @@ public:
|
||||
*/
|
||||
static bool useHdfs();
|
||||
|
||||
/**
|
||||
* Accessor method that returns whether or not HDFS is enabled
|
||||
*/
|
||||
static bool PreallocSpace();
|
||||
|
||||
/**
|
||||
* Accessor method that returns whether to use HDFS memory buffers
|
||||
*/
|
||||
@ -134,6 +139,7 @@ private:
|
||||
static bool isLocalFile( const std::string& path );
|
||||
|
||||
static bool s_usehdfs;
|
||||
static bool s_PreallocSpace;
|
||||
static bool s_bUseRdwrMemBuffer;
|
||||
static std::string s_hdfsRdwrScratch;
|
||||
static int64_t s_hdfsRdwrBufferMaxSize;
|
||||
@ -153,6 +159,12 @@ bool IDBPolicy::useHdfs()
|
||||
return s_usehdfs;
|
||||
}
|
||||
|
||||
inline
|
||||
bool IDBPolicy::PreallocSpace()
|
||||
{
|
||||
return s_PreallocSpace;
|
||||
}
|
||||
|
||||
inline
|
||||
bool IDBPolicy::useRdwrMemBuffer()
|
||||
{
|
||||
|
Reference in New Issue
Block a user