Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix copy-pasta in oximeter-db internal datum type representation #1574

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

bnaecker
Copy link
Collaborator

  • Fixes copy-paste error when converting between oximeter's
    DatumType and the type used to represent it in the database,
    oximeter_db::model::DbDatumType.
  • Adds a slew of sanity checks verifying these mechanical conversions to
    prevent regressions

- Fixes copy-paste error when converting between `oximeter`'s
  `DatumType` and the type used to represent it in the database,
  `oximeter_db::model::DbDatumType`.
- Adds a slew of sanity checks verifying these mechanical conversions to
  prevent regressions
@bnaecker bnaecker requested a review from smklein August 10, 2022 17:00
@bnaecker bnaecker enabled auto-merge (squash) August 10, 2022 17:05
@@ -191,7 +191,7 @@ impl From<DatumType> for DbDatumType {
DatumType::String => DbDatumType::String,
DatumType::Bytes => DbDatumType::Bytes,
DatumType::CumulativeI64 => DbDatumType::CumulativeI64,
DatumType::CumulativeF64 => DbDatumType::CumulativeI64,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yikes!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, who reviewed this thing anyway?!

@bnaecker bnaecker merged commit 000333b into main Aug 10, 2022
@bnaecker bnaecker deleted the fix-oximeter-db-reprs branch August 10, 2022 17:53
leftwo pushed a commit that referenced this pull request Nov 27, 2024
Crucible Changes:
Send deactivate flush if `need_flush` is set (#1573)
Improve DTrace scripts. (#1574)
Move reconcile-specific data into `ReconcileData` struct (#1567)
Remove unprinted header item from sled_upstairs_info (#1566)
Downgrade warning about skipping IO on all 3x Downstairs (#1564)

Propolis changes:
Wire up viona params from illumos#16738
leftwo added a commit that referenced this pull request Nov 27, 2024
Crucible Changes:
Send deactivate flush if `need_flush` is set (#1573) Improve DTrace
scripts. (#1574)
Move reconcile-specific data into `ReconcileData` struct (#1567) Remove
unprinted header item from sled_upstairs_info (#1566) Downgrade warning
about skipping IO on all 3x Downstairs (#1564)

Propolis changes:
Wire up viona params from illumos#16738

Co-authored-by: Alan Hanson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants