You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
Randomly start a new generation if the free memory is less than 30%
This commit is contained in:
committed by
Roman Nozdrin
parent
fd9fe182d5
commit
1be82f859b
@@ -21,6 +21,7 @@
|
||||
#include "resourcemanager.h"
|
||||
#include "rowgroup.h"
|
||||
#include "idbcompress.h"
|
||||
#include <random>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -368,6 +369,9 @@ class RowAggStorage
|
||||
bool fInitialized{false};
|
||||
rowgroup::RowGroup* fRowGroupOut;
|
||||
rowgroup::RowGroup* fKeysRowGroup;
|
||||
std::random_device fRD;
|
||||
std::mt19937 fRandGen;
|
||||
std::uniform_int_distribution<uint8_t> fRandDistr;
|
||||
};
|
||||
|
||||
} // namespace rowgroup
|
||||
|
Reference in New Issue
Block a user