1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2026-01-06 08:21:10 +03:00

Randomly start a new generation if the free memory is less than 30%

This commit is contained in:
Alexey Antipovsky
2022-08-22 20:22:15 +03:00
committed by Roman Nozdrin
parent 7251f58818
commit 15ce531270
2 changed files with 24 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
#include "resourcemanager.h"
#include "rowgroup.h"
#include "idbcompress.h"
#include <random>
#include <sys/stat.h>
#include <unistd.h>
@@ -367,6 +368,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