]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: try with pool's use-gmt setting if hitset archive not found 13827/head
authorKefu Chai <kchai@redhat.com>
Tue, 7 Mar 2017 10:49:46 +0000 (18:49 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 8 Mar 2017 16:13:56 +0000 (00:13 +0800)
commit6b5322c5f62f4b90c4206c6ddcc70d090fa7eeb9
tree719e26b1c9038e93c12ebe25c74d7614842a4ef1
parent420a9a0796e327676cb704bc18b2020f9941d7b6
osd/ReplicatedPG: try with pool's use-gmt setting if hitset archive not found

due to http://tracker.ceph.com/issues/19185, a hammer OSD could store
pg_hit_set_info_t with "use-gmt = true" even the pool setting is false.
so we use the pool setting as a fallback if the hitset archive is not
found locally and the pool.use_gmt does not match with hitset.use_gmt.

Fixes: http://tracker.ceph.com/issues/19185
Signed-off-by: Kefu Chai <kchai@redhat.com>
Conflicts:
  osd/ReplicatedPG.cc:  This cannot be cherry-picked from master
    because: hammer should upgrade to jewel first before moving to a
    higher version. so there is no necessary to include this workaround
    in releases later than jewel.
src/osd/ReplicatedPG.cc