mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 11:15:50 +08:00
update histogram record count in set page size function
This commit is contained in:
parent
a8cc9dedef
commit
669c892931
@ -1618,9 +1618,6 @@ RedwoodMetrics g_redwoodMetrics = {};
|
||||
Future<Void> g_redwoodMetricsActor;
|
||||
|
||||
ACTOR Future<Void> redwoodMetricsLogger() {
|
||||
if(g_redwoodMetrics.maxRecordCount != 315 * SERVER_KNOBS->REDWOOD_DEFAULT_PAGE_SIZE / 4096){
|
||||
g_redwoodMetrics.updateMaxRecordCount(315 * SERVER_KNOBS->REDWOOD_DEFAULT_PAGE_SIZE / 4096);
|
||||
}
|
||||
g_redwoodMetrics.clear();
|
||||
|
||||
loop {
|
||||
@ -1954,6 +1951,9 @@ public:
|
||||
}
|
||||
|
||||
void setPageSize(int size) {
|
||||
if(g_redwoodMetrics.maxRecordCount != 315 * size / 4096){
|
||||
g_redwoodMetrics.updateMaxRecordCount(315 * size / 4096);
|
||||
}
|
||||
logicalPageSize = size;
|
||||
// Physical page size is the total size of the smallest number of physical blocks needed to store
|
||||
// logicalPageSize bytes
|
||||
|
Loading…
x
Reference in New Issue
Block a user