]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: use cmd_getval_cast_or() to fetch shard-id
authorRonen Friedman <rfriedma@redhat.com>
Wed, 12 Mar 2025 09:28:37 +0000 (04:28 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 19 Mar 2025 07:18:05 +0000 (02:18 -0500)
commitc9382d87d64d5719d49e2c09522698c63b82868c
tree79c315c24598421c73be4729c8c22665911bafff
parentae1e251c5f3287701f5bb2b22ce0a9a1580ddfc7
osd: use cmd_getval_cast_or() to fetch shard-id

as that interface alleviates the need to cast shard_id_t::NO_SHARD
back and forth to/from int.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/OSD.cc