This commit is contained in:
fbsanchez 2021-02-01 15:00:54 +01:00
parent 96c218f21e
commit 712079c30e
3 changed files with 14 additions and 11 deletions

View File

@ -1558,11 +1558,11 @@ function config_update_config()
if (Config::set(
'history_partitions_auto',
get_parameter_switch('history_partitions_auto'),
get_parameter_switch('history_partitions_auto', 0),
true
) !== true
) {
$error_update[] = __('Historical database days compact');
$error_update[] = __('Historical database partitions');
}
if (Config::set(

View File

@ -73,18 +73,18 @@ final class Config
false
);
if ($config['history_db_connection'] !== false) {
$data = \db_get_all_rows_sql(
'SELECT * FROM `tconfig`',
false,
false,
$config['history_db_connection']
);
}
ob_get_clean();
}
if ($config['history_db_connection'] !== false) {
$data = \db_get_all_rows_sql(
'SELECT * FROM `tconfig`',
false,
false,
$config['history_db_connection']
);
}
if (is_array($data) !== true) {
return [];
}

View File

@ -1134,6 +1134,9 @@ if (defined($history_dbh)) {
1 # Disable certain funcionality while runningn in historical database.
);
# Handle partitions.
enterprise_hook('handle_partitions', [$h_conf, $history_dbh]);
}
# Release the lock