Skip to content

Commit

Permalink
fix(pageserver): write to both v1+v2 for aux tenant import
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi Z <chi@neon.tech>
  • Loading branch information
skyzh committed Jul 8, 2024
1 parent a68edad commit 0b7c040
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion storage_controller/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4062,7 +4062,13 @@ impl Service {
placement_policy: Some(PlacementPolicy::Attached(0)), // No secondaries, for convenient debug/hacking

// There is no way to know what the tenant's config was: revert to defaults
config: TenantConfig::default(),
config: {
let mut config = TenantConfig::default();
// TODO: change it back to default once we finish auxv2 migration
// we write to both v1+v2 storage, so that the test case can use either storage format for testing
config.switch_aux_file_policy = Some(models::AuxFilePolicy::CrossValidation);
config
},
})
.await?;

Expand Down

0 comments on commit 0b7c040

Please sign in to comment.