ceph icon indicating copy to clipboard operation
ceph copied to clipboard

crimson/osd: Generalize loading obc for head/clone

Open Matan-B opened this issue 3 years ago • 0 comments

  • load_head_obc is changed to load_obc and can be used to load clone obc's as well.
  • get_or_load_obc is introduced and used both by with_head/clone_obc avoiding boilerplates.

(This change will also be useful for CEPH_OSD_OP_ROLLBACK implementation).

Signed-off-by: Matan Breizman [email protected]

Contribution Guidelines

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)
    • [x] Code cleanup (no ticket needed)
  • Component impact
    • [ ] Affects Dashboard, opened tracker ticket
    • [ ] Affects Orchestrator, opened tracker ticket
    • [x] No impact that needs to be tracked
  • Documentation (select at least one)
    • [ ] Updates relevant documentation
    • [x] 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

Matan-B avatar Oct 03 '22 10:10 Matan-B