]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: move get_max_object_size() to store level 69256/head
authorRonen Friedman <rfriedma@redhat.com>
Wed, 3 Jun 2026 05:40:25 +0000 (05:40 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 10 Jun 2026 06:42:05 +0000 (06:42 +0000)
commit631a405f2cd3cdcff472087e2693a6f2f94ad122
tree1a1dc859ad22c9b66aa01967e7f8631369cdff78
parent8953492e9a5398c55c5d50457c66d75ae1663604
crimson/osd: move get_max_object_size() to store level

is_offset_and_length_valid() called get_sharded_store() locally to
obtain the store-specific max_object_size. On alien cores (where
smp::count > store_shard_nums), the local store is inactive and the
call hits assert(shard_store.get_status() == true).

As the max object size is a store-specific property and not a
store-shard one, there is no reason to acquire the
store shard to obtain it. Instead -
a get_max_object_size() method is added to the Store interface.

Fixes: https://tracker.ceph.com/issues/76946
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/crimson/os/futurized_store.h
src/crimson/os/seastore/seastore.h
src/crimson/osd/pg_backend.cc