]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: add a variable to store osd_deep_scrub_stride 49379/head
authorZhansong Gao <zhsgao@hotmail.com>
Sun, 11 Dec 2022 13:40:41 +0000 (21:40 +0800)
committerZhansong Gao <zhsgao@hotmail.com>
Wed, 14 Dec 2022 10:49:03 +0000 (18:49 +0800)
commitdb8d185288d0e9602f654c89b7f18f8be45de3d0
tree5c1e84755ecac214b086994e9251c9fbdee6db70
parent94a142f227cfc9a30d62c307267f3493ba307171
osd/scrub: add a variable to store osd_deep_scrub_stride

Use another variable to store the value of osd_deep_scrub_stride for later use
because osd_deep_scrub_stride can be modified on the fly, otherwise we may get
an incorrect digest value that contains only part of the object data
when osd_deep_scrub_stride is modified and it will make pg inconsistent.

Fixes: https://tracker.ceph.com/issues/58240
Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
src/osd/ReplicatedBackend.cc