]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
bluestore: Fix _setattr() with rare memory alignments
authorAlex Ainscow <aainscow@uk.ibm.com>
Tue, 10 Jun 2025 09:54:13 +0000 (10:54 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 2 Jul 2025 08:40:46 +0000 (09:40 +0100)
commit88bc731b9ef6a4b326378b9b721a5f9234f7a7f1
tree11eb50925498ddf472314da36aa3c84be20de72c
parent68e7d4e41766327bd3439d8349109095b5205936
bluestore: Fix _setattr() with rare memory alignments

Fix an issue in BlueStore_setattr whereby if a buffer was contiguous and non-partial, then bluestore could completely drop the attribute.

setattr seems to be rarely used outside of new EC. In new EC it is only
used on non-primary shards, so this was only ever seen if the non-primary
happened to be on the same OSD as the primary - this is transient and rare
that scrubbing would actually catche the issue.

Fixes: https://tracker.ceph.com/issues/71623
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit d4e2d4977016bce22a4b9e779c5da54be2d4aaba)
src/os/bluestore/BlueStore.cc