mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-17 05:00:38 +00:00
fix(pageserver): add dry-run to force compact API (#8859)
Add `dry-run` flag to the compact API Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
@@ -1733,6 +1733,10 @@ async fn timeline_compact_handler(
|
||||
if Some(true) == parse_query_param::<_, bool>(&request, "enhanced_gc_bottom_most_compaction")? {
|
||||
flags |= CompactFlags::EnhancedGcBottomMostCompaction;
|
||||
}
|
||||
if Some(true) == parse_query_param::<_, bool>(&request, "dry_run")? {
|
||||
flags |= CompactFlags::DryRun;
|
||||
}
|
||||
|
||||
let wait_until_uploaded =
|
||||
parse_query_param::<_, bool>(&request, "wait_until_uploaded")?.unwrap_or(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user