Skip to content

log: some code refactoring - #72845

Open
MaxKellermann wants to merge 9 commits into
ceph:mainfrom
MaxKellermann:log_refactoring
Open

MaxKellermann wants to merge 9 commits into
ceph:mainfrom
MaxKellermann:log_refactoring

Conversation

@MaxKellermann

Copy link
Copy Markdown
Member

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

Signed-off-by: Max Kellermann <[email protected]>
The size is known at compile time and the vector size is never
modified after it was filled by the constructor.

Signed-off-by: Max Kellermann <[email protected]>
If the base class has a virtual destructor, each derived class has an
implicit override, so there's no point in these lines.

Signed-off-by: Max Kellermann <[email protected]>
This may enable compiler optimizations.

Signed-off-by: Max Kellermann <[email protected]>
Callers can just as well use strv().size().

Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Ensure that they cannot be called on a base class reference
accidentally.

Signed-off-by: Max Kellermann <[email protected]>
No practical effect, but was formally incorrect.

Signed-off-by: Max Kellermann <[email protected]>
@MaxKellermann

Copy link
Copy Markdown
Member Author

jenkins test make check

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@yuriw

yuriw commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri-testing-20261109.210713-main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants