Skip to content

Commit

Permalink
better todos
Browse files Browse the repository at this point in the history
  • Loading branch information
koivunej committed May 10, 2024
1 parent 0fb48c0 commit 4e1d86f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pageserver/src/tenant/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,7 @@ pub(crate) mod modern_serde {
struct Crc32CalculationFailed<E>(#[source] E);

// this should be false for a week, after that we can change it to true
// remember to change "metadata_bytes" from being a `serde(rename = "...")` to `serde(alias =
// "...")` in future.
// remember to check the IndexPart::metadata field TODO comment as well
const LEGACY_BINCODED_BYTES: bool = true;

#[derive(serde::Serialize)]
Expand Down
4 changes: 2 additions & 2 deletions pageserver/src/tenant/remote_timeline_client/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ pub struct IndexPart {
// private because internally we would read from metadata instead.
disk_consistent_lsn: Lsn,

// TODO: later make this "rename" to "alias"
// TODO: later make this "rename" to "alias", rename field as "legacy_metadata"
#[serde(
rename = "metadata_bytes",
alias = "metadata_bytes",
with = "crate::tenant::metadata::modern_serde"
)]
pub metadata: TimelineMetadata,
Expand Down

0 comments on commit 4e1d86f

Please sign in to comment.