Skip to content

mds: Remove unnecessary std::move in MetricsHandler#65884

Merged
vshankar merged 1 commit intoceph:mainfrom
edwinzrodriguez:ceph-wip-73430
Nov 3, 2025
Merged

mds: Remove unnecessary std::move in MetricsHandler#65884
vshankar merged 1 commit intoceph:mainfrom
edwinzrodriguez:ceph-wip-73430

Conversation

@edwinzrodriguez
Copy link
Contributor

Remove unnecessary std::move on const expression in MetricsHandler::handle_payload

Fixes: https://tracker.ceph.com/issues/73430

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions github-actions bot added the cephfs Ceph File System label Oct 10, 2025
…er::handle_payload

Fixes: https://tracker.ceph.com/issues/73430
Signed-off-by: Edwin Rodriguez <edwin.rodriguez1@ibm.com>
@edwinzrodriguez
Copy link
Contributor Author

jenkins test windows

@vshankar
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/73647.

dout(20) << " accumulating subv_metric " << payload.subvolume_metrics[i] << dendl;
vec.emplace_back(std::move(payload.subvolume_metrics[i]));
// std::move of the const expression of the trivially-copyable type 'const value_type'
// (aka 'const AggregatedIOMetrics') has no effect; remove std::move()
Copy link
Member

Choose a reason for hiding this comment

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

no need to keep this comment IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't want somebody in the future thinking it would be clever to put back the std::move here

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

@vshankar vshankar merged commit ee2c65c into ceph:main Nov 3, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System needs-qa

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants