pageserver: add TenantConf::enable_heatmap (default false)

This commit is contained in:
John Spray
2023-11-02 15:22:18 +00:00
parent 6f0a225776
commit fc3c7aaa6c
5 changed files with 35 additions and 0 deletions

View File

@@ -389,6 +389,11 @@ impl PageServerNode {
.map(|x| x.parse::<bool>())
.transpose()
.context("Failed to parse 'gc_feedback' as bool")?,
enable_heatmap: settings
.remove("enable_heatmap")
.map(|x| x.parse::<bool>())
.transpose()
.context("Failed to parse 'enable_heatmap' as bool")?,
};
let request = models::TenantCreateRequest {
@@ -486,6 +491,11 @@ impl PageServerNode {
.map(|x| x.parse::<bool>())
.transpose()
.context("Failed to parse 'gc_feedback' as bool")?,
enable_heatmap: settings
.remove("enable_heatmap")
.map(|x| x.parse::<bool>())
.transpose()
.context("Failed to parse 'enable_heatmap' as bool")?,
}
};